]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 8 Feb 2021 20:29:42 +0000 (20:29 +0000)
commit27bc87fed72a7e5499445a35278b76526f1a4a28
treed1aaeae6abdf957842d3ed8d46210792bb9c78bd
parent5dc6bce758ea1dd5b76177261f9b1540219f5ad9
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)
t/db_dependent/Koha/Items.t