Now it happens when items.restricted is set to 1: koha_1 | # Failed test 'No error or alert should be raised (error: RESTRICTED) (question: BIBLIO_ALREADY_ISSUED)' koha_1 | # at t/db_dependent/Circulation.t line 1620. koha_1 | # got: '1' koha_1 | # expected: '0' koha_1 | koha_1 | # Failed test 'No BIBLIO_ALREADY_ISSUED flag should be set if AllowMultipleIssuesOnABiblio=1 (error: RESTRICTED)' koha_1 | # at t/db_dependent/Circulation.t line 1625. koha_1 | # got: '1' koha_1 | # expected: '0' koha_1 | koha_1 | # Failed test 'No BIBLIO_ALREADY_ISSUED flag should be set if it is a subscription (error: RESTRICTED)' koha_1 | # at t/db_dependent/Circulation.t line 1632. koha_1 | # got: '1' koha_1 | # expected: '0' koha_1 | koha_1 | # Failed test 'No BIBLIO_ALREADY_ISSUED flag should be set if it is a subscription (error: RESTRICTED)' koha_1 | # at t/db_dependent/Circulation.t line 1636. koha_1 | # got: '1' koha_1 | # expected: '0' koha_1 | # Looks like you failed 4 tests of 5. koha_1 | koha_1 | # Failed test 'CanBookBeIssued + AllowMultipleIssuesOnABiblio' koha_1 | # at t/db_dependent/Circulation.t line 1637. koha_1 | # Looks like you failed 1 test of 116. koha_1 | [16:00:17] t/db_dependent/Circulation.t ...................................
Created attachment 75137 [details] [review] Bug 20721: (bug 19403 follow-up) Prevent Circulation.t to fail randomly If items.restricted == 1, CanBookBeIssued will not returned what we are testing. The easiest and global fix is to define a default value at TestBuilder package level Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Patch pushed to master for 18.05
Pushed to stbale for 17.11.06 Awesome work all!
Pushed to 17.05.x for v17.05.12