Bugzilla – Attachment 157904 Details for
Bug 33960
Add ability to retrieve deleted bibliographic records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33960: (QA follow-up) Enhance tests
Bug-33960-QA-follow-up-Enhance-tests.patch (text/plain), 1.83 KB, created by
Martin Renvoize (ashimema)
on 2023-10-26 10:34:05 UTC
(
hide
)
Description:
Bug 33960: (QA follow-up) Enhance tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-10-26 10:34:05 UTC
Size:
1.83 KB
patch
obsolete
>From 5d1f7ea70b0d3e1a5efe43bb4e66b3eda8809802 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 26 Oct 2023 11:32:29 +0100 >Subject: [PATCH] Bug 33960: (QA follow-up) Enhance tests > >--- > t/db_dependent/api/v1/biblios.t | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) > >diff --git a/t/db_dependent/api/v1/biblios.t b/t/db_dependent/api/v1/biblios.t >index de34a0281d7..40e7e9bee85 100755 >--- a/t/db_dependent/api/v1/biblios.t >+++ b/t/db_dependent/api/v1/biblios.t >@@ -1627,7 +1627,7 @@ subtest 'put() tests' => sub { > > subtest 'list() tests' => sub { > >- plan tests => 28; >+ plan tests => 29; > > $schema->storage->txn_begin; > >@@ -1690,7 +1690,6 @@ subtest 'list() tests' => sub { > Koha::Biblios->search({ 'biblioitem.isbn' => 'TOMAS' }, { join => [ 'biblioitem' ] }) > ->delete; > >- > my $isbn_query = encode_json({ isbn => 'TOMAS' }); > $biblio->biblioitem->set({ isbn => 'TOMAS' })->store; > $t->get_ok( "//$userid:$password@/api/v1/biblios?q=$isbn_query" => >@@ -1698,11 +1697,11 @@ subtest 'list() tests' => sub { > ->status_is(200); > > DelBiblio( $biblio->id ); >- DelBiblio( $biblio2->id ); > >- $t->get_ok( "//$userid:$password@/api/v1/biblios/?deleted=1&q=$query" => >+ $result = $t->get_ok( "//$userid:$password@/api/v1/biblios/?deleted=1&q=$query" => > { Accept => 'application/json' } ) >- ->status_is(200); >+ ->status_is(200)->tx->res->json; >+ is( scalar @{$result}, 1, "Only deleted biblios returned"); > > $result = $t->get_ok( "//$userid:$password@/api/v1/biblios/?deleted=1&q=$query" => > { Accept => 'application/marcxml+xml' } ) >@@ -1723,8 +1722,6 @@ subtest 'list() tests' => sub { > { Accept => 'text/plain' } ) > ->status_is(200); > >- >- > $schema->storage->txn_rollback; > }; > >-- >2.41.0
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 33960
:
152199
|
152200
|
152201
|
152215
|
155331
|
155332
|
155333
|
155334
|
155335
|
155416
|
155417
|
155418
|
155419
|
155420
|
157899
|
157900
|
157901
|
157902
|
157903
|
157904
|
158071
|
159998
|
159999
|
160000
|
160001
|
160002
|
160552
|
163852
|
163853
|
163854
|
163855
|
163948
|
163949
|
163950
|
163951