Bug 40608: (QA follow-up) Delete notice in test, adjust about.tt

[1] This prevents a warn 'Violation of unique constraint in Letter'
    from TestBuilder if the notice already exists.
[2] The about warn should no longer say that password changes will
    fail but only warn about a missing notification.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2025-08-08 06:44:43 +00:00 committed by Lucas Gass
parent 93a830b8ca
commit 8d31c2e067
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 3 additions and 2 deletions

View File

@ -596,8 +596,8 @@
<tr>
<th scope="row"><strong>Warning</strong> </th>
<td
>System preference 'NotifyPasswordChange' is enabled, but the PASSWORD_CHANGE notice template is missing. Password changes will fail. Please create the PASSWORD_CHANGE notice template in
<a href="/cgi-bin/koha/tools/letter.pl">Tools &gt; Notices and slips</a>.</td
>System preference 'NotifyPasswordChange' is enabled, but the PASSWORD_CHANGE notice template is missing. Patrons will not be notified about password changes. Please create the PASSWORD_CHANGE notice template
in <a href="/cgi-bin/koha/tools/letter.pl">Tools &gt; Notices and slips</a>.</td
>
</tr>
[% END %]

View File

@ -1546,6 +1546,7 @@ subtest 'password expiration tests' => sub {
my $date = dt_from_string();
my $category =
$builder->build_object( { class => 'Koha::Patron::Categories', value => { password_expiry_days => 10 } } );
Koha::Notice::Templates->search( { code => 'PASSWORD_CHANGE', module => 'members' } )->delete;
my $patron = $builder->build_object(
{
class => 'Koha::Patrons',