Fixed LDAP authentication + unified app config options: authenticate_settings, security and ldap
This commit is contained in:
parent
4b49c95b20
commit
f3bdeb2493
17 changed files with 105 additions and 245 deletions
|
|
@ -50,8 +50,8 @@ class ServiceTest extends \PHPUnit_Framework_TestCase
|
|||
*/
|
||||
public function testGetProviders()
|
||||
{
|
||||
$a = $this->prophesize('\PHPCensor\Security\Authentication\UserProvider')->reveal();
|
||||
$b = $this->prophesize('\PHPCensor\Security\Authentication\UserProvider')->reveal();
|
||||
$a = $this->prophesize('\PHPCensor\Security\Authentication\UserProviderInterface')->reveal();
|
||||
$b = $this->prophesize('\PHPCensor\Security\Authentication\UserProviderInterface')->reveal();
|
||||
$providers = ['a' => $a, 'b' => $b];
|
||||
|
||||
$service = new Service($providers);
|
||||
|
|
@ -64,8 +64,8 @@ class ServiceTest extends \PHPUnit_Framework_TestCase
|
|||
*/
|
||||
public function testGetLoginPasswordProviders()
|
||||
{
|
||||
$a = $this->prophesize('\PHPCensor\Security\Authentication\UserProvider')->reveal();
|
||||
$b = $this->prophesize('\PHPCensor\Security\Authentication\LoginPasswordProvider')->reveal();
|
||||
$a = $this->prophesize('\PHPCensor\Security\Authentication\UserProviderInterface')->reveal();
|
||||
$b = $this->prophesize('\PHPCensor\Security\Authentication\LoginPasswordProviderInterface')->reveal();
|
||||
$providers = ['a' => $a, 'b' => $b];
|
||||
|
||||
$service = new Service($providers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue