View | Details | Raw Unified | Return to bug 31503
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Patron/Consents.t (-4 / +6 lines)
Lines 54-62 subtest 'Method available_types' => sub { Link Here
54
    plan tests => 7;
54
    plan tests => 7;
55
    $schema->storage->txn_begin;
55
    $schema->storage->txn_begin;
56
56
57
    t::lib::Mocks::mock_preference( 'PrivacyPolicyConsent',   'Enforced' );
57
    t::lib::Mocks::mock_preference( 'PrivacyPolicyConsent', q{} );
58
    my $types = Koha::Patron::Consents->available_types;
58
    my $types        = Koha::Patron::Consents->available_types;
59
    is( keys %$types, 1, 'Expect one type for privacy policy' );
59
    my $count_before = scalar keys %$types;
60
    t::lib::Mocks::mock_preference( 'PrivacyPolicyConsent', 'Enforced' );
61
    $types = Koha::Patron::Consents->available_types;
62
    is( keys %$types, $count_before + 1, 'Expect one type more for privacy policy' );
60
63
61
    # Mock get_enabled_plugins
64
    # Mock get_enabled_plugins
62
    my $plugins        = [];
65
    my $plugins        = [];
63
- 

Return to bug 31503