Koha/t/db_dependent/Koha
Tomas Cohen Arazi 00ea18282e Bug 27580: Regression tests
This test makes all the generated sample items have undef copynumber,
and all rules are added copynumber => [ 2 ] on the tests as
suggested by Andrew on his failing example.

The tests are expected to pass. i.e. copynumber is clearly not equal to
2, so those items shouldn't be hidden.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Items.t
=> FAIL: Tests fail! undef is considered in [ 2 ]

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-01 16:15:24 +01:00
..
Account Bug 24603: Simplify tests using TestBuilder 2020-11-10 15:00:14 +01:00
Acquisition Bug 25670: Fix random failure on Orders.t 2021-02-01 10:35:14 +01:00
Biblio Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
BiblioUtils Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Cash Bug 26172: (QA follow-up) Add tests for previous cashups 2020-11-05 15:24:20 +01:00
Charges Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Checkouts Bug 27004: Regression tests 2021-01-04 13:29:47 +01:00
Club Bug 27333: Regression tests 2021-01-27 10:45:54 +01:00
Config Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Filter Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
IssuingRules Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Item Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Library Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Objects/Mixin Bug 23994: Fix random failure from AdditionalFields.t (U18) 2019-11-08 09:31:47 +00:00
Patron Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
Patrons Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Plugins Bug 26470: Regression tests 2020-09-18 10:38:01 +02:00
REST Bug 27034: Do not use path parameters on building the query 2021-01-29 09:03:45 +01:00
SearchEngine Bug 27307: Unit test 2021-01-12 16:02:35 +01:00
SMTP Bug 26595: Remove password from the smtp_server API object 2020-10-14 15:53:38 +02:00
Subscription Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Tags Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Template/Plugin Bug 24665: (QA follow-up) Add tests for 'selected' 2020-11-06 17:30:08 +01:00
XSLT Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Z3950Responder Bug 27149: Unit tests 2021-01-12 11:19:41 +01:00
Account.t Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ActionLogs.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
ApiKeys.t Bug 26157: Hide expected DBI warnings from tests 2020-08-24 11:19:03 +02:00
Authorities.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
BackgroundJobs.t Bug 27317: (Bug 27127 follow-up) fix t/db_dependent/Koha/BackgroundJobs.t 2020-12-30 12:05:12 -03:00
Biblio.t Bug 27062: Fix pickup_location tests when existing libraries exist 2020-11-20 10:34:54 +01:00
BiblioFrameworks.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Biblios.t Bug 26921: Don't generate an invalid custom cover image if the url cannot be generated 2020-12-21 10:07:48 +01:00
Checkout.t Bug 26327: Add exec flag on .t file 2020-10-14 14:50:07 +02:00
Checkouts.t Bug 23916: (QA follow-up) Adapt all the things to the new column and accessor names 2020-11-10 15:00:14 +01:00
CirculationRules.t Bug 23091: Update unit test 2020-11-06 15:55:17 +01:00
Cities.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
ClassSortRules.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
ClassSources.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
ClassSplitRules.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
CoverImages.t Bug 26145: Add exec flag on .t file 2020-10-12 12:36:27 +02:00
CsvProfiles.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Database.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Desks.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Hold.t Bug 27209: (follow-up) Add ->is_pickup_location_valid 2020-12-21 10:07:45 +01:00
Holds.t Bug 24412: (follow-up) qa-tools 2020-11-06 15:55:17 +01:00
IssuingRules.t Bug 23091: Update unit test 2020-11-06 15:55:17 +01:00
Item.t Bug 27062: Fix pickup_location tests when existing libraries exist 2020-11-20 10:34:54 +01:00
Items.t Bug 27580: Regression tests 2021-02-01 16:15:24 +01:00
ItemTypes.t Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
KeyboardShortcuts.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Libraries.t Bug 22818: (QA follow-up) Email addressing corrections 2020-11-11 08:35:10 +01:00
Library.t Bug 26595: Embed the whole smtp_server object 2020-10-14 15:53:38 +02:00
MarcSubfieldStructures.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
News.t Bug 24398: Fix 500 when viewing a single news item at the OPAC 2020-12-26 17:58:38 +01:00
Notices.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Object.t Bug 26555: Make sure _messages is always initialized 2020-10-15 14:50:06 +02:00
Objects.t Bug 26984: (follow-up) Don't delete patrons and checkouts in Objects.t 2020-11-20 08:16:02 +01:00
Old.t Bug 26327: Add ->library method to Koha::*Checkout 2020-10-14 14:50:06 +02:00
Patron.t Bug 19382: Adjust comment in test 2020-10-14 14:50:07 +02:00
Patrons.t Bug 23916: (follow-up) Fix unit test 2020-11-10 15:00:14 +01:00
Pseudonymization.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Quotes.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Ratings.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
Reports.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Reviews.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
SearchField.t Bug 19482: (follow-up) Fix update, add tests, restore closing </td> 2020-11-04 12:59:33 +01:00
SharedContent.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
SMS_Providers.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Statistics.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Subscription.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Suggestion.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Suggestions.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Tags.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Z3950Servers.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00