]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 1 Feb 2021 15:15:24 +0000 (16:15 +0100)
commit00ea18282e622805321425789209ed9e0f8f7ea0
tree81c50169a30190c18a7d5cdfddeb01a24798a462
parent3094bf9bad45cfba064f40ac6b6e0e1a1672c1f8
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>
t/db_dependent/Koha/Items.t