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

(-)a/t/db_dependent/Koha/Patron/Restriction/Type.t (-7 / +3 lines)
Lines 81-93 subtest 'delete() tests' => sub { Link Here
81
        }
81
        }
82
    );
82
    );
83
    ok( $used_restriction_type->delete, 'Used restriction type deleted' );
83
    ok( $used_restriction_type->delete, 'Used restriction type deleted' );
84
    my $debarments = Koha::Patron::Debarments::GetDebarments(
84
    my $restrictions = $patron->restrictions;
85
        {
85
    my $THE_restriction = $restrictions->next;
86
            borrowernumber => $patron->borrowernumber
87
        }
88
    );
89
    is(
86
    is(
90
        $debarments->[0]->{type},
87
        $THE_restriction->type->code,
91
        $default_restriction_type->code,
88
        $default_restriction_type->code,
92
        'Used restriction updated to default'
89
        'Used restriction updated to default'
93
    );
90
    );
94
- 

Return to bug 31095