Bugzilla – Attachment 40758 Details for
Bug 13853
Show waiting hold expiration date for waiting holds in holds ajax datatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13853: (follow-up) unit tests
Bug-13853-follow-up-unit-tests.patch (text/plain), 1.39 KB, created by
Jonathan Druart
on 2015-07-02 09:22:15 UTC
(
hide
)
Description:
Bug 13853: (follow-up) unit tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-07-02 09:22:15 UTC
Size:
1.39 KB
patch
obsolete
>From f6458e14d7012bee61facbb3e235ad06b4d1f86f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@koha-community.org> >Date: Thu, 2 Jul 2015 10:20:13 +0100 >Subject: [PATCH] Bug 13853: (follow-up) unit tests > >Specify the reference, we should receive Koha::Object. > >Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> >--- > t/db_dependent/Items.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t >index 1a528d6..10dc039 100755 >--- a/t/db_dependent/Items.t >+++ b/t/db_dependent/Items.t >@@ -403,14 +403,14 @@ subtest 'Koha::Item(s) tests' => sub { > > # Get item. > my $item = Koha::Items->find( $itemnumber ); >- ok( $item, "Got Koha::Item" ); >+ is( ref($item), 'Koha::Item', "Got Koha::Item" ); > > my $homebranch = $item->home_branch(); >- ok( $homebranch, "Got Koha::Branch from home_branch method" ); >+ is( ref($homebranch), 'Koha::Branch', "Got Koha::Branch from home_branch method" ); > is( $homebranch->branchcode(), $branch1, "Home branch code matches homebranch" ); > > my $holdingbranch = $item->holding_branch(); >- ok( $holdingbranch, "Got Koha::Branch from holding_branch method" ); >+ is( ref($holdingbranch), 'Koha::Branch', "Got Koha::Branch from holding_branch method" ); > is( $holdingbranch->branchcode(), $branch2, "Home branch code matches holdingbranch" ); > }; > >-- >2.1.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 13853
:
36949
|
36984
|
39748
|
40026
|
40037
|
40417
|
40673
|
40674
|
40675
|
40755
|
40756
|
40757
| 40758