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

(-)a/t/db_dependent/Utils/Datatables_Members.t (-2 / +11 lines)
Lines 17-23 Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Test::More tests => 52;
20
use Test::More tests => 53;
21
21
22
use C4::Context;
22
use C4::Context;
23
use C4::Members;
23
use C4::Members;
Lines 551-555 subtest 'Search with permissions' => sub { Link Here
551
    );
551
    );
552
};
552
};
553
553
554
subtest 'return values' => sub {
555
    plan tests => 1;
556
    my $search_results = C4::Utils::DataTables::Members::search({
557
        searchmember     => "John Doe",
558
        searchfieldstype => 'standard',
559
        searchtype       => 'contain',
560
    });
561
    ok(exists $search_results->{patrons}->[0]->{othernames}, 'othernames should have been retrieved' );
562
};
563
554
# End
564
# End
555
$schema->storage->txn_rollback;
565
$schema->storage->txn_rollback;
556
- 

Return to bug 25046