Bug 27580: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 29 Jan 2021 19:40:27 +0000 (16:40 -0300)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Wed, 10 Feb 2021 00:55:30 +0000 (01:55 +0100)
commit6617d5f699c02b193049f9bf4ee86bf03f7ddded
tree5a40beb50c992a1ce0dd695fef3860ec7c4722fb
parent86f3fb161e9897d6401108972468e811d0747a92
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>
(cherry picked from commit d767dc54a60e233afa9d295798eacc8cbc28a5f1)
(cherry picked from commit 27bc87fed72a7e5499445a35278b76526f1a4a28)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
t/db_dependent/Koha/Items.t