From e95a82822f8877cf3783934542b8efda72f5e073 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 16 Feb 2022 11:50:40 -0300 Subject: [PATCH] Bug 30074: Regression tests Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/api/v1/patrons.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t index ba064b6392..9f052cf091 100755 --- a/t/db_dependent/api/v1/patrons.t +++ b/t/db_dependent/api/v1/patrons.t @@ -52,7 +52,8 @@ subtest 'list() tests' => sub { $schema->storage->txn_rollback; subtest 'librarian access tests' => sub { - plan tests => 17; + + plan tests => 19; $schema->storage->txn_begin; @@ -90,6 +91,11 @@ subtest 'list() tests' => sub { ->json_is( '/0/restricted' => Mojo::JSON->true ) ->json_hasnt('/1'); + $t->get_ok( "//$userid:$password@/api/v1/patrons?" + . 'q={"extended_attributes.type":"CODE"}' => + { 'x-koha-embed' => 'extended_attributes' } ) + ->status_is( 200, "Works, doesn't explode" ); + subtest 'searching date and date-time fields' => sub { plan tests => 12; -- 2.32.0