Koha/t/lib
Jonathan Druart 7fef05b641 Bug 28516: Prevent failures if borrower_attribute_types.mandatory=1
TestBuilder will generate an integer for the
Koha::Patron::Attribute::Type object, but if 1 is picked some tests are
failing randomly
At least t/db_dependent/Koha/Patrons.t and t/db_dependent/Koha/Patrons/Import.t
The expection "Missing mandatory extended attribute" is raised when the
patron is stored.

Test plan:
The following script should return 0 when the patch is applied:

"""
use t::lib::TestBuilder;
my $builder = t::lib::TestBuilder->new;
my $x = $builder->build_object(
    {
        class => 'Koha::Patron::Attribute::Types',
    }
);
say $x->mandatory;
"""

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-07-09 08:28:45 -04:00
..
Koha Bug 24000: Some modules do not return 1 2021-04-06 15:56:30 +02:00
QA Bug 27336: Fix xt/find-missing-filters.t 2021-01-11 10:27:37 +01:00
Dates.pm Bug 19176: (QA follow-up) few cosmetic changes 2017-11-03 13:50:27 -03:00
Mocks.pm Bug 24786: (QA follow-up) Unit tests for Registers plugin 2020-11-06 15:40:00 +01:00
Selenium.pm Bug 28250: Remove upload of debug for Selenium failures 2021-04-30 17:07:31 +02:00
TestBuilder.pm Bug 28516: Prevent failures if borrower_attribute_types.mandatory=1 2021-07-09 08:28:45 -04:00