]> git.koha-community.org Git - koha.git/commit
Bug 27580: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 29 Jan 2021 19:40:27 +0000 (16:40 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 5 Feb 2021 15:36:12 +0000 (16:36 +0100)
commitd767dc54a60e233afa9d295798eacc8cbc28a5f1
tree5c66755779f1f1e946e866e96fea63a2e8096b2d
parentcc4f8b283fae830d631ffc1148179064f6f24872
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>
(cherry picked from commit 00ea18282e622805321425789209ed9e0f8f7ea0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/Items.t