Bugzilla – Attachment 132167 Details for
Bug 29810
Add embed options documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Debugging Tests
Debugging-Tests.patch (text/plain), 1.84 KB, created by
Martin Renvoize (ashimema)
on 2022-03-24 14:20:51 UTC
(
hide
)
Description:
Debugging Tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-03-24 14:20:51 UTC
Size:
1.84 KB
patch
obsolete
>From 159a1b39ddca58c392cf0b983415706771039ad4 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 24 Mar 2022 14:19:35 +0000 >Subject: [PATCH] Debugging Tests > >https://bugs.koha-community.org/show_bug.cgi?id=29810 >--- > t/db_dependent/api/v1/acquisitions_orders.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/api/v1/acquisitions_orders.t b/t/db_dependent/api/v1/acquisitions_orders.t >index 3025c1856b..7d9b8a5da0 100755 >--- a/t/db_dependent/api/v1/acquisitions_orders.t >+++ b/t/db_dependent/api/v1/acquisitions_orders.t >@@ -112,8 +112,8 @@ subtest 'list() tests' => sub { > > my $query = { "biblio.isbn" => { "-like" => "\%SOMETHING\%" } }; > >- $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?q=" . encode_json($query) => {'x-koha-embed' => 'biblio'} ) >- ->status_is( 200, "Embeddig biblio.isbn doesn't make it explode" ) >+ $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?q=" . encode_json($query) => {'x-koha-embed' => 'biblio' } ) >+ ->status_is( 200, "Embedding biblio and searching on biblio.isbn doesn't make it explode" )->or( sub { diag $t->tx->res->to_string } ) > ->json_has( "/0/biblio", "biblio object correctly embedded" ) > ->json_is( "/0/biblio/isbn", 'SOMETHING', 'Filtering by a biblioitems column works!' ); > >@@ -206,7 +206,7 @@ subtest 'list() tests' => sub { > > $result = > $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?_order_by=-biblio.isbn,+biblio.ean,-biblio.publisher&basket_id=" . $basket->id => {'x-koha-embed' => 'biblio'} ) >- ->status_is( 200, "query successful" ) >+ ->status_is( 200, "query successful" )->or( sub { diag $t->tx->res->to_string } ) > ->tx->res->json; > > is( $result->[0]->{order_id}, $order_2->id, 'Ordered correctly' ); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29810
:
129063
|
129064
|
129067
|
129068
|
129069
|
129070
|
129071
|
129072
|
129073
|
132131
|
132132
|
132133
|
132134
|
132135
|
132136
|
132137
|
132160
|
132161
|
132162
|
132163
|
132164
|
132165
|
132166
|
132167
|
132223
|
132224
|
132225
|
132226
|
132227
|
132228
|
132229
|
132230
|
132255
|
132256
|
132257
|
132258
|
132259
|
132260
|
132261
|
132262
|
132341
|
132342
|
132343
|
132344
|
132345
|
132346
|
132347
|
132348
|
133063
|
133064
|
133065
|
133066
|
133067
|
133068
|
133069
|
133070
|
133285