mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
parent
7960e911a6
commit
adae7b34c1
@ -27,7 +27,7 @@ class DbBackendFormTest extends BaseTestCase
|
|||||||
public function testValidBackendIsValid()
|
public function testValidBackendIsValid()
|
||||||
{
|
{
|
||||||
$this->setUpResourceFactoryMock();
|
$this->setUpResourceFactoryMock();
|
||||||
Mockery::mock('overload:Icinga\Authentication\Backend\DbUserBackend')
|
Mockery::mock('overload:Icinga\Authentication\User\DbUserBackend')
|
||||||
->shouldReceive('count')
|
->shouldReceive('count')
|
||||||
->andReturn(2);
|
->andReturn(2);
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ class DbBackendFormTest extends BaseTestCase
|
|||||||
public function testInvalidBackendIsNotValid()
|
public function testInvalidBackendIsNotValid()
|
||||||
{
|
{
|
||||||
$this->setUpResourceFactoryMock();
|
$this->setUpResourceFactoryMock();
|
||||||
Mockery::mock('overload:Icinga\Authentication\Backend\DbUserBackend')
|
Mockery::mock('overload:Icinga\Authentication\User\DbUserBackend')
|
||||||
->shouldReceive('count')
|
->shouldReceive('count')
|
||||||
->andReturn(0);
|
->andReturn(0);
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class LdapBackendFormTest extends BaseTestCase
|
|||||||
public function testValidBackendIsValid()
|
public function testValidBackendIsValid()
|
||||||
{
|
{
|
||||||
$this->setUpResourceFactoryMock();
|
$this->setUpResourceFactoryMock();
|
||||||
Mockery::mock('overload:Icinga\Authentication\Backend\LdapUserBackend')
|
Mockery::mock('overload:Icinga\Authentication\User\LdapUserBackend')
|
||||||
->shouldReceive('assertAuthenticationPossible')->andReturnNull();
|
->shouldReceive('assertAuthenticationPossible')->andReturnNull();
|
||||||
|
|
||||||
$form = Mockery::mock('Icinga\Forms\Config\Authentication\LdapBackendForm[getView]');
|
$form = Mockery::mock('Icinga\Forms\Config\Authentication\LdapBackendForm[getView]');
|
||||||
@ -52,7 +52,7 @@ class LdapBackendFormTest extends BaseTestCase
|
|||||||
public function testInvalidBackendIsNotValid()
|
public function testInvalidBackendIsNotValid()
|
||||||
{
|
{
|
||||||
$this->setUpResourceFactoryMock();
|
$this->setUpResourceFactoryMock();
|
||||||
Mockery::mock('overload:Icinga\Authentication\Backend\LdapUserBackend')
|
Mockery::mock('overload:Icinga\Authentication\User\LdapUserBackend')
|
||||||
->shouldReceive('assertAuthenticationPossible')->andThrow(new AuthenticationException);
|
->shouldReceive('assertAuthenticationPossible')->andThrow(new AuthenticationException);
|
||||||
|
|
||||||
$form = Mockery::mock('Icinga\Forms\Config\Authentication\LdapBackendForm[getView]');
|
$form = Mockery::mock('Icinga\Forms\Config\Authentication\LdapBackendForm[getView]');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user