Bug 12098: (follow-up) deal with FIXMEs in t/db_dependent/Serials_2.t
authorGalen Charlton <gmc@esilibrary.com>
Fri, 18 Apr 2014 20:17:27 +0000 (20:17 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 18 Apr 2014 20:46:00 +0000 (20:46 +0000)
This patch nails down the number of tests to be run.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Serials_2.t

index d1dff21..c11c0d3 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 use Modern::Perl;
 
-use Test::More;# tests => 5; #FIXME uncomment me
+use Test::More tests => 37;
 
 use MARC::Record;
 
@@ -81,7 +81,7 @@ my $borrowernumber = C4::Members::AddMember(
     userid => $userid,
 );
 
-$userenv = { flags => 1, id => $borrowernumber, branch => '' }; # FIXME Not sure about this test
+$userenv = { flags => 1, id => $borrowernumber, branch => '' };
 
 # Can edit a subscription
 
@@ -210,12 +210,8 @@ is( C4::Serials::can_show_subscription($subscription_from_another_branch), 1,
 "Without IndependentBranches, renew_subscription cannot show a subscription from another branch"
 );
 
-
-
 $dbh->rollback;
 
-done_testing;
-
 # C4::Context->userenv
 sub Mock_userenv {
     return $userenv;