Bug 18936: Convert issuingrules fields to circulation_rules
[koha.git] / t / db_dependent / Koha / Objects.t
index 27dd449..56cf4af 100644 (file)
@@ -25,7 +25,6 @@ use Test::Warn;
 
 use Koha::Authority::Types;
 use Koha::Cities;
-use Koha::IssuingRules;
 use Koha::Patron::Category;
 use Koha::Patron::Categories;
 use Koha::Patrons;
@@ -114,7 +113,7 @@ subtest 'new' => sub {
 };
 
 subtest 'find' => sub {
-    plan tests => 5;
+    plan tests => 4;
 
     # check find on a single PK
     my $patron = $builder->build({ source => 'Borrower' });
@@ -132,12 +131,6 @@ subtest 'find' => sub {
         { where => { surname => { '!=', $patron->{surname} }}},
     ), undef, 'Additional where clause in find call' );
 
-    # check find with a composite FK
-    my $rule = $builder->build({ source => 'Issuingrule' });
-    my @pk = ( $rule->{branchcode}, $rule->{categorycode}, $rule->{itemtype} );
-    is( ref(Koha::IssuingRules->find(@pk)), "Koha::IssuingRule",
-        'Find returned a Koha object for composite primary key' );
-
     is( Koha::Patrons->find(), undef, 'Find returns undef if no params passed' );
 };