Bug 17425 [QA Followup] - Remove superfluous tests
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 18:15:50 +0000 (18:15 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 18:15:50 +0000 (18:15 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/Patron.t

index e3a2dd4..c32de10 100755 (executable)
@@ -17,7 +17,7 @@
 
 use Modern::Perl;
 
-use Test::More tests => 18;
+use Test::More tests => 11;
 use Test::Warn;
 use t::lib::Mocks;
 
@@ -43,22 +43,6 @@ ok( ref($ret) eq 'Koha::Patron', "Set returns object on success" );
 is( $object2->surname(),   "Test Patron Surname 3", "Set sets first field correctly" );
 is( $object2->firstname(), "Test Firstname",          "Set sets second field correctly" );
 
-warning_is { $ret = $object->set({ surname => "Test Patron Surname 4", bork => "bork" }) }
-            "No property bork!",
-            "Expected 'No property bork!' caught";
-is( $object2->surname(), "Test Patron Surname 3", "Bad Set does not set field" );
-is( $ret, 0, "Set returns 0 when passed a bad property" );
-
-warning_is { $ret = $object->bork() }
-            "The method bork is not covered by tests or does not exist!",
-            "Expected 'The method bork is not covered by tests or does not exist!' caught for getter.";
-ok( ! defined $ret, 'Bad getter returns undef' );
-
-warning_is { $ret = $object->bork('bork') }
-            "The method bork is not covered by tests or does not exist!",
-            "Expected 'The method bork is not covered by tests or does not exist!' caught for setter.";
-ok( ! defined $ret, 'Bad setter returns undef' );
-
 my $patron = Koha::Patron->new(
     {
         borrowernumber      => '12345',