This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from Adldap2/analysis-8b0a2a
Applied fixes from StyleCI
- Loading branch information
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ | |
|
||
namespace Adldap\Laravel\Tests; | ||
|
||
use Adldap\Models\User; | ||
use Adldap\Connections\Ldap; | ||
use Adldap\Contracts\AdldapInterface; | ||
use Adldap\Laravel\Facades\Adldap; | ||
use Adldap\Laravel\Tests\Models\User as EloquentUser; | ||
use Adldap\Models\User; | ||
use Illuminate\Support\Facades\App; | ||
use Illuminate\Support\Facades\Auth; | ||
use Illuminate\Support\Facades\Hash; | ||
|
@@ -40,8 +40,8 @@ public function test_auth_passes($credentials = null) | |
$credentials = $credentials ?: ['email' => '[email protected]', 'password' => '12345']; | ||
|
||
$user = $this->getMockUser([ | ||
'cn' => '', | ||
'mail' => '[email protected]', | ||
'cn' => '', | ||
'mail' => '[email protected]', | ||
'samaccountname' => 'jdoe', | ||
]); | ||
|
||
|
@@ -90,8 +90,8 @@ public function test_auth_passes_without_persistent_adldap_user() | |
public function test_auth_fails_when_user_found() | ||
{ | ||
$user = $this->getMockUser([ | ||
'cn' => '', | ||
'mail' => '[email protected]', | ||
'cn' => '', | ||
'mail' => '[email protected]', | ||
'samaccountname' => 'jdoe', | ||
]); | ||
|
||
|
@@ -229,8 +229,8 @@ public function test_config_password_sync_disabled() | |
$this->app['config']->set('adldap_auth.password_sync', false); | ||
|
||
$user = $this->getMockUser([ | ||
'cn' => '', | ||
'mail' => '[email protected]', | ||
'cn' => '', | ||
'mail' => '[email protected]', | ||
'samaccountname' => 'jdoe', | ||
]); | ||
|
||
|
@@ -258,7 +258,7 @@ public function test_config_password_sync_disabled() | |
$this->assertTrue(Auth::attempt(compact('email', 'password'))); | ||
|
||
$user = Auth::user(); | ||
|
||
// This check will fail due to password synchronization being disabled. | ||
$this->assertFalse(Hash::check($password, $user->password)); | ||
} | ||
|