Bugzilla – Attachment 40791 Details for
Bug 8684
Duplicate check for creating items on order broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8684: Add regression tests for SearchItemsByField
0002-Bug-8684-Add-regression-tests-for-SearchItemsByField.patch (text/plain), 1.15 KB, created by
Amit Gupta
on 2015-07-04 09:47:03 UTC
(
hide
)
Description:
Bug 8684: Add regression tests for SearchItemsByField
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2015-07-04 09:47:03 UTC
Size:
1.15 KB
patch
obsolete
>From 7c8c3f8616558966ff5f21206cd2b9b6911ce20c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 13 Apr 2015 10:12:03 +0200 >Subject: [PATCH 2/2] Bug 8684: Add regression tests for SearchItemsByField > > >Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> >--- > t/db_dependent/Items.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t >index b41b483..b78e131 100755 >--- a/t/db_dependent/Items.t >+++ b/t/db_dependent/Items.t >@@ -228,7 +228,7 @@ subtest q{Test Koha::Database->schema()->resultset('Item')->itemtype()} => sub { > }; > > subtest 'SearchItems test' => sub { >- plan tests => 13; >+ plan tests => 14; > > # Start transaction > $dbh->{AutoCommit} = 0; >@@ -383,6 +383,9 @@ subtest 'SearchItems test' => sub { > ($items, $total_results) = SearchItems($filter); > ok(scalar @$items == 1, 'found 1 item with itemnotes = "foobar"'); > >+ my $cpl_items = SearchItemsByField( 'homebranch', 'CPL'); >+ is( ( $cpl_items and scalar( @$cpl_items ) ), 1, 'SearchItemsByField should return something' ); >+ > $dbh->rollback; > }; > >-- >1.7.9.5 >
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 8684
:
37545
|
37712
|
40790
|
40791
|
41171
|
41172