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:
parent
93a830b8ca
commit
8d31c2e067
|
|
@ -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 > 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 > Notices and slips</a>.</td
|
||||
>
|
||||
</tr>
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue