Bugzilla – Attachment 51259 Details for
Bug 16325
Suggestions: Tab "Status unknown" contains all suggestions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 16325: Add a test for SearchSuggestions when searching for STATUS=''
PASSED-QA-Bug-16325-Add-a-test-for-SearchSuggestio.patch (text/plain), 1.43 KB, created by
Katrin Fischer
on 2016-05-05 20:17:52 UTC
(
hide
)
Description:
[PASSED QA] Bug 16325: Add a test for SearchSuggestions when searching for STATUS=''
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-05-05 20:17:52 UTC
Size:
1.43 KB
patch
obsolete
>From 72fee8ba6db06a438c10333ceac41701629fd8f6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 3 May 2016 16:13:27 +0100 >Subject: [PATCH] [PASSED QA] Bug 16325: Add a test for SearchSuggestions when > searching for STATUS='' >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Test fails as expected without second patch and passes OK with second patch. >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > t/db_dependent/Suggestions.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Suggestions.t b/t/db_dependent/Suggestions.t >index a960331..79e5cbe 100644 >--- a/t/db_dependent/Suggestions.t >+++ b/t/db_dependent/Suggestions.t >@@ -28,7 +28,7 @@ use Koha::Library; > use Koha::Libraries; > > use DateTime::Duration; >-use Test::More tests => 105; >+use Test::More tests => 106; > use Test::Warn; > > BEGIN { >@@ -303,6 +303,11 @@ $search_suggestion = SearchSuggestion({ > STATUS => $mod_suggestion3->{STATUS}, > }); > is( @$search_suggestion, 1, 'SearchSuggestion returns the correct number of suggestions' ); >+ >+$search_suggestion = SearchSuggestion({ >+ STATUS => q|| >+}); >+is( @$search_suggestion, 0, 'SearchSuggestion should not return all suggestions if we want the suggestions with a STATUS=""' ); > $search_suggestion = SearchSuggestion({ > STATUS => 'REJECTED', > }); >-- >1.9.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 16325
:
50562
|
51153
|
51154
|
51159
|
51160
| 51259 |
51260