Bugzilla – Attachment 130125 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), 1.96 KB, created by
Lucas Gass (lukeg)
on 2022-02-02 20:51:50 UTC
(
hide
)
Description:
Bug 29570: Regression tests
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-02-02 20:51:50 UTC
Size:
1.96 KB
patch
obsolete
>From efaedc51782e91b25ae331014d219b7bf6ad5e14 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> >--- > 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 398f918b97..3025c1856b 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.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 29570
:
130122
|
130123
|
130124
|
130125
|
130126
|
130127
|
130308
|
130309
|
130310
|
130311
|
130336