View | Details | Raw Unified | Return to bug 18231
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Objects.t (-5 / +7 lines)
Lines 24-30 use Test::Warn; Link Here
24
24
25
use Koha::Authority::Types;
25
use Koha::Authority::Types;
26
use Koha::Cities;
26
use Koha::Cities;
27
use Koha::IssuingRules;
27
use Koha::Notice::Templates;
28
use Koha::Patron::Category;
28
use Koha::Patron::Category;
29
use Koha::Patron::Categories;
29
use Koha::Patron::Categories;
30
use Koha::Patrons;
30
use Koha::Patrons;
Lines 129-137 subtest 'find' => sub { Link Here
129
    ), undef, 'Additional where clause in find call' );
129
    ), undef, 'Additional where clause in find call' );
130
130
131
    # check find with a composite FK
131
    # check find with a composite FK
132
    my $rule = $builder->build({ source => 'Issuingrule' });
132
    my $letter = $builder->build({ source => 'Letter' });
133
    my @pk = ( $rule->{branchcode}, $rule->{categorycode}, $rule->{itemtype} );
133
    my @pk = (
134
    is( ref(Koha::IssuingRules->find(@pk)), "Koha::IssuingRule",
134
        $letter->{module}, $letter->{code}, $letter->{branchcode},
135
        $letter->{message_transport_type}, $letter->{lang}
136
    );
137
    is( ref(Koha::Notice::Templates->find(@pk)), "Koha::Notice::Template",
135
        'Find returned a Koha object for composite primary key' );
138
        'Find returned a Koha object for composite primary key' );
136
139
137
    is( Koha::Patrons->find(), undef, 'Find returns undef if no params passed' );
140
    is( Koha::Patrons->find(), undef, 'Find returns undef if no params passed' );
138
- 

Return to bug 18231