Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 9562f11

Browse files
committed
Updated login fallback test.
1 parent 41e9817 commit 9562f11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/DatabaseProviderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,14 @@ public function test_config_login_fallback()
166166

167167
$resolver = m::mock(ResolverInterface::class);
168168

169-
$resolver->shouldReceive('byCredentials')->twice()->andReturn(null);
169+
$resolver->shouldReceive('byCredentials')->times(3)->andReturn(null);
170170

171171
Auth::getProvider()->setResolver($resolver);
172172

173173
$this->assertTrue(Auth::attempt($credentials));
174+
$this->assertFalse(Auth::attempt(
175+
array_replace($credentials, ['password' => 'Invalid'])
176+
));
174177

175178
config(['adldap_auth.login_fallback' => false]);
176179

0 commit comments

Comments
 (0)