Bugzilla – Attachment 84000 Details for
Bug 22006
Koha::Account::Line->item should return undef if no item linked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22006: Add tests
Bug-22006-Add-tests.patch (text/plain), 1.26 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-01-15 18:43:50 UTC
(
hide
)
Description:
Bug 22006: Add tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-01-15 18:43:50 UTC
Size:
1.26 KB
patch
obsolete
>From 18dfed75f42f01a255b412167545aa63de6efb84 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 14 Dec 2018 16:14:42 -0300 >Subject: [PATCH] Bug 22006: Add tests > >Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Koha/Account/Lines.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Account/Lines.t b/t/db_dependent/Koha/Account/Lines.t >index b0ea018616..f7f0c16554 100755 >--- a/t/db_dependent/Koha/Account/Lines.t >+++ b/t/db_dependent/Koha/Account/Lines.t >@@ -35,7 +35,7 @@ my $builder = t::lib::TestBuilder->new; > > subtest 'item() tests' => sub { > >- plan tests => 2; >+ plan tests => 3; > > $schema->storage->txn_begin; > >@@ -64,6 +64,9 @@ subtest 'item() tests' => sub { > is( ref( $account_line_item ), 'Koha::Item', 'Koha::Account::Line->item should return a Koha::Item' ); > is( $line->itemnumber, $account_line_item->itemnumber, 'Koha::Account::Line->item should return the correct item' ); > >+ $line->itemnumber(undef)->store; >+ is( $line->item, undef, 'Koha::Account::Line->item should return undef if no item linked' ); >+ > $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 22006
:
83240
|
83241
|
83246
|
83247
| 84000 |
84001