Bugzilla – Attachment 41172 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]
[PASSED QA] Bug 8684: Add regression tests for SearchItemsByField
PASSED-QA-Bug-8684-Add-regression-tests-for-Search.patch (text/plain), 1.21 KB, created by
Kyle M Hall (khall)
on 2015-07-24 15:46:55 UTC
(
hide
)
Description:
[PASSED QA] Bug 8684: Add regression tests for SearchItemsByField
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-07-24 15:46:55 UTC
Size:
1.21 KB
patch
obsolete
>From 9d7a9c9b892b7cc80847278cbcaf07f6b2dad7c9 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] [PASSED QA] Bug 8684: Add regression tests for SearchItemsByField > >Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/Items.t | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > >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.2.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