[dw-free] fix t/esn.t
[commit: http://hg.dwscoalition.org/dw-free/rev/744eea705836]
http://bugs.dwscoalition.org/show_bug.cgi?id=2809
Fix a broken test.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2809
Fix a broken test.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- t/esn.t
-------------------------------------------------------------------------------- diff -r 9ec64bf149c0 -r 744eea705836 t/esn.t --- a/t/esn.t Mon Jul 26 17:47:46 2010 -0500 +++ b/t/esn.t Mon Jul 26 17:59:36 2010 -0500 @@ -9,8 +9,7 @@ use LJ::Test qw(memcache_stress temp_use use LJ::Test qw(memcache_stress temp_user); use FindBin qw($Bin); -#plan tests => 15; -plan skip_all => 'Fix this test!'; +plan tests => 15; @LJ::EVENT_TYPES = ('LJ::Event::ForTest1', 'LJ::Event::ForTest2'); $LJ::_T_FAST_TEMP_USER = 1; @@ -18,9 +17,9 @@ my $up; my $up; my $u = temp_user(); -# create another user and make $u2 friend $u +# create another user and make $u2 watch $u my $u2 = temp_user(); -LJ::add_friend($u2, $u); +$u2->add_edge( $u, watch => { nonotify => 1 } ); my ($evt, $evt2); @@ -93,11 +92,11 @@ sub wipe_typeids { package LJ::Event::ForTest1; use base 'LJ::Event'; -sub zero_journalid_subs_means { "friends" } +sub zero_journalid_subs_means { "watched" } package LJ::Event::ForTest2; use base 'LJ::Event'; -sub zero_journalid_subs_means { "friends" } +sub zero_journalid_subs_means { "watched" } package LJ::NotificationMethod::ForTest; use base 'LJ::NotificationMethod'; --------------------------------------------------------------------------------