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

(-)a/t/db_dependent/Koha/REST/Plugin/Objects.t (-4 / +6 lines)
Lines 89-95 get '/libraries/:library_id_1/:library_id_2' => sub { Link Here
89
    my $library_id_1 = $c->param('library_id_1');
89
    my $library_id_1 = $c->param('library_id_1');
90
    my $library_id_2 = $c->param('library_id_2');
90
    my $library_id_2 = $c->param('library_id_2');
91
91
92
    my $libraries_rs = Koha::Libraries->search({ branchcode => [ $library_id_1, $library_id_2 ] });
92
    my $libraries_rs = Koha::Libraries->search(
93
        { branchcode => [ $library_id_1, $library_id_2 ] },
94
        { order_by   => 'branchname' }
95
    );
93
    my $libraries    = $c->objects->search( $libraries_rs );
96
    my $libraries    = $c->objects->search( $libraries_rs );
94
97
95
    $c->render(
98
    $c->render(
Lines 538-545 subtest 'objects.search helper, public requests' => sub { Link Here
538
541
539
    $schema->storage->txn_begin;
542
    $schema->storage->txn_begin;
540
543
541
    my $library_1 = $builder->build_object({ class => 'Koha::Libraries' });
544
    my $library_1 = $builder->build_object({ class => 'Koha::Libraries', value => { branchname => 'A' } });
542
    my $library_2 = $builder->build_object({ class => 'Koha::Libraries' });
545
    my $library_2 = $builder->build_object({ class => 'Koha::Libraries', value => { branchname => 'B' } });
543
546
544
    my $t = Test::Mojo->new;
547
    my $t = Test::Mojo->new;
545
548
546
- 

Return to bug 28948