Bugzilla – Attachment 98287 Details for
Bug 24440
Add ->current_item_level_holds to Koha::Acquisition::Order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24440: Adding 2 more tests for ->biblio
Bug-24440-Adding-2-more-tests-for--biblio.patch (text/plain), 1.48 KB, created by
Jonathan Druart
on 2020-02-03 12:37:44 UTC
(
hide
)
Description:
Bug 24440: Adding 2 more tests for ->biblio
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-03 12:37:44 UTC
Size:
1.48 KB
patch
obsolete
>From e1f0567f6f04411aec3fd4e1b36d859b8559adca Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 31 Jan 2020 15:08:00 +0100 >Subject: [PATCH] Bug 24440: Adding 2 more tests for ->biblio > >Not directly related to the other changes but seems good to have them >here. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Koha/Acquisition/Order.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Acquisition/Order.t b/t/db_dependent/Koha/Acquisition/Order.t >index aaa57910ac..77476eb228 100644 >--- a/t/db_dependent/Koha/Acquisition/Order.t >+++ b/t/db_dependent/Koha/Acquisition/Order.t >@@ -59,7 +59,7 @@ subtest 'basket() tests' => sub { > > subtest 'biblio() tests' => sub { > >- plan tests => 3; >+ plan tests => 5; > > $schema->storage->txn_begin; > >@@ -80,6 +80,11 @@ subtest 'biblio() tests' => sub { > is( ref($THE_biblio), 'Koha::Biblio', 'Returns a Koha::Biblio object' ); > is( $THE_biblio->biblionumber, $biblio->biblionumber, 'It is not cheating about the object' ); > >+ $order->biblio->delete; >+ $order = Koha::Acquisition::Orders->find($order->ordernumber); >+ ok( $order, 'The order is not deleted if the biblio is deleted' ); >+ is( $order->biblio, undef, 'order.biblio is correctly set to NULL when the biblio is deleted' ); >+ > $schema->storage->txn_rollback; > }; > >-- >2.11.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 24440
:
97467
|
97468
|
97491
|
97492
|
98194
|
98195
|
98196
|
98197
|
98205
|
98206
|
98207
|
98208
|
98237
|
98283
|
98284
|
98285
|
98286
| 98287 |
98288