Fixed LDAP authentication + unified app config options: authenticate_settings, security and ldap

This commit is contained in:
Dmitry Khomutov 2017-01-22 18:05:24 +07:00
commit f3bdeb2493
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
17 changed files with 105 additions and 245 deletions

View file

@ -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);