Skip to content

Commit

Permalink
Update test to ensure null diagnostic message is handled
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Nov 1, 2023
1 parent d44a629 commit a0e791f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Unit/ListenForLdapBindFailureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function test_validation_exception_is_not_thrown_when_invalid_credentials

/** @var \LdapRecord\Testing\LdapFake $ldap */
$ldap = $fake->getLdapConnection();
$ldap->shouldReturnDiagnosticMessage(null);
$ldap->shouldReturnError('Invalid credentials');

$this->assertFalse($fake->auth()->attempt('user', 'secret'));
Expand Down

0 comments on commit a0e791f

Please sign in to comment.