Bugzilla – Attachment 130308 Details for
Bug 29570
Unable to sort summary column of pending_orders table on parcel.pl by summary column
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29570: Regression tests
Bug-29570-Regression-tests.patch (text/plain), 2.04 KB, created by
Jonathan Druart
on 2022-02-08 16:35:55 UTC
(
hide
)
Description:
Bug 29570: Regression tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-02-08 16:35:55 UTC
Size:
2.04 KB
patch
obsolete
>From 9be564728367efe758c2e0a21e9b7cef91cb9f41 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 2 Feb 2022 16:29:00 -0300 >Subject: [PATCH] Bug 29570: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/api/v1/acquisitions_orders.t | 26 ++++++++++++++++++++- > 1 file changed, 25 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/acquisitions_orders.t b/t/db_dependent/api/v1/acquisitions_orders.t >index 398f918b970..3025c1856bc 100755 >--- a/t/db_dependent/api/v1/acquisitions_orders.t >+++ b/t/db_dependent/api/v1/acquisitions_orders.t >@@ -137,7 +137,7 @@ subtest 'list() tests' => sub { > > subtest 'sorting tests' => sub { > >- plan tests => 10; >+ plan tests => 14; > > $schema->storage->txn_begin; > >@@ -188,6 +188,30 @@ subtest 'list() tests' => sub { > is( $result->[0]->{order_id}, $order_2->id, 'The first element is order_2' ); > is( $result->[1]->{order_id}, $order_1->id, 'The second element is order_1' ); > >+ $biblio_1->biblioitem->set( >+ { >+ isbn => 'A', >+ ean => 'Y', >+ publishercode => 'M', >+ } >+ )->store; >+ >+ $biblio_2->biblioitem->set( >+ { >+ isbn => 'B', >+ ean => 'X', >+ publishercode => 'L', >+ } >+ )->store; >+ >+ $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" ) >+ ->tx->res->json; >+ >+ is( $result->[0]->{order_id}, $order_2->id, 'Ordered correctly' ); >+ is( $result->[1]->{order_id}, $order_1->id, 'Ordered correctly' ); >+ > $schema->storage->txn_rollback; > }; > >-- >2.25.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 29570
:
130122
|
130123
|
130124
|
130125
|
130126
|
130127
| 130308 |
130309
|
130310
|
130311
|
130336