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

(-)a/t/db_dependent/Illrequests.t (-2 / +3 lines)
Lines 807-813 subtest 'Checking Limits' => sub { Link Here
807
807
808
subtest 'TO_JSON() tests' => sub {
808
subtest 'TO_JSON() tests' => sub {
809
809
810
    plan tests => 10;
810
    plan tests => 11;
811
811
812
    my $illreqmodule = Test::MockModule->new('Koha::Illrequest');
812
    my $illreqmodule = Test::MockModule->new('Koha::Illrequest');
813
813
Lines 839-844 subtest 'TO_JSON() tests' => sub { Link Here
839
        undef, '%embed not passed, no \'capabilities\' attribute' );
839
        undef, '%embed not passed, no \'capabilities\' attribute' );
840
    is( $illreq_json->{library},
840
    is( $illreq_json->{library},
841
        undef, '%embed not passed, no \'library\' attribute' );
841
        undef, '%embed not passed, no \'library\' attribute' );
842
    is( $illreq_json->{requested_partners},
843
        undef, '%embed not passed, no \'requested_partners\' attribute' );
842
844
843
    $illreq_json = $illreq->TO_JSON(
845
    $illreq_json = $illreq->TO_JSON(
844
        { patron => 1, metadata => 1, capabilities => 1, library => 1 } );
846
        { patron => 1, metadata => 1, capabilities => 1, library => 1 } );
845
- 

Return to bug 20563