Bug 39746: Fix wrong system preference 'AutoLocation' in test suite
Bug 26176 renamed 'AutoLocation' to 'StaffLoginRestrictLibraryByIP'
Needs to be fixed in test suite
Test plan:
Enable 'StaffLoginRestrictLibraryByIP' in prefs
Run : prove Auth.t
Should pass
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ea6e31c39b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
8b0fef77af
commit
523eee0bf2
|
|
@ -271,7 +271,7 @@ subtest 'checkauth() tests' => sub {
|
|||
subtest 'Two-factor authentication' => sub {
|
||||
plan tests => 18;
|
||||
|
||||
t::lib::Mocks::mock_preference( 'AutoLocation', 0 );
|
||||
t::lib::Mocks::mock_preference( 'StaffLoginRestrictLibraryByIP', 0 );
|
||||
|
||||
my $patron = $builder->build_object(
|
||||
{ class => 'Koha::Patrons', value => { flags => 1 } } );
|
||||
|
|
|
|||
Loading…
Reference in New Issue