-
Notifications
You must be signed in to change notification settings - Fork 20
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 #18 from SaschaDens/analysis-zOPpW8
Applied fixes from StyleCI
Showing
7 changed files
with
51 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,21 +4,20 @@ | |
|
||
use Dsdevbe\LdapConnector\Adapter\LdapInterface; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
|
||
class LdapUserProviderSpec extends ObjectBehavior | ||
{ | ||
function let(LdapInterface $interface) | ||
public function let(LdapInterface $interface) | ||
{ | ||
$this->beConstructedWith($interface); | ||
} | ||
|
||
function it_is_initializable() | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType('Dsdevbe\LdapConnector\LdapUserProvider'); | ||
} | ||
|
||
function it_validate_user_by_credentials(LdapInterface $interface) | ||
public function it_validate_user_by_credentials(LdapInterface $interface) | ||
{ | ||
$user = [ | ||
'username' => '[email protected]', | ||
|
@@ -29,7 +28,7 @@ function it_validate_user_by_credentials(LdapInterface $interface) | |
$this->retrieveByCredentials($user); | ||
} | ||
|
||
function it_retrieves_user_by_id(LdapInterface $interface) | ||
public function it_retrieves_user_by_id(LdapInterface $interface) | ||
{ | ||
$identifier = '[email protected]'; | ||
|
||
|
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<?php | ||
|
||
return array( | ||
'plugins' => array( | ||
'adldap' => array( | ||
'account_suffix'=> '@domain.local', | ||
'domain_controllers'=> array( | ||
return [ | ||
'plugins' => [ | ||
'adldap' => [ | ||
'account_suffix' => '@domain.local', | ||
'domain_controllers' => [ | ||
'192.168.0.1', | ||
'dc02.domain.local' | ||
), // Load balancing domain controllers | ||
'base_dn' => 'DC=domain,DC=local', | ||
'dc02.domain.local', | ||
], // Load balancing domain controllers | ||
'base_dn' => 'DC=domain,DC=local', | ||
'admin_username' => 'admin', // This is required for session persistance in the application | ||
'admin_password' => 'yourPassword', | ||
), | ||
), | ||
); | ||
], | ||
], | ||
]; |
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