From adae7b34c1cb5ca03d07ee9de2baa68ae9db094a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 22 Apr 2015 10:36:37 +0200 Subject: [PATCH] Fix DbBackendFormTest and LdapBackendFormTest refs #8826 --- .../forms/Config/Authentication/DbBackendFormTest.php | 4 ++-- .../forms/Config/Authentication/LdapBackendFormTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/php/application/forms/Config/Authentication/DbBackendFormTest.php b/test/php/application/forms/Config/Authentication/DbBackendFormTest.php index b7d1ea3c1..010118544 100644 --- a/test/php/application/forms/Config/Authentication/DbBackendFormTest.php +++ b/test/php/application/forms/Config/Authentication/DbBackendFormTest.php @@ -27,7 +27,7 @@ class DbBackendFormTest extends BaseTestCase public function testValidBackendIsValid() { $this->setUpResourceFactoryMock(); - Mockery::mock('overload:Icinga\Authentication\Backend\DbUserBackend') + Mockery::mock('overload:Icinga\Authentication\User\DbUserBackend') ->shouldReceive('count') ->andReturn(2); @@ -52,7 +52,7 @@ class DbBackendFormTest extends BaseTestCase public function testInvalidBackendIsNotValid() { $this->setUpResourceFactoryMock(); - Mockery::mock('overload:Icinga\Authentication\Backend\DbUserBackend') + Mockery::mock('overload:Icinga\Authentication\User\DbUserBackend') ->shouldReceive('count') ->andReturn(0); diff --git a/test/php/application/forms/Config/Authentication/LdapBackendFormTest.php b/test/php/application/forms/Config/Authentication/LdapBackendFormTest.php index d31033ba9..d933005b7 100644 --- a/test/php/application/forms/Config/Authentication/LdapBackendFormTest.php +++ b/test/php/application/forms/Config/Authentication/LdapBackendFormTest.php @@ -28,7 +28,7 @@ class LdapBackendFormTest extends BaseTestCase public function testValidBackendIsValid() { $this->setUpResourceFactoryMock(); - Mockery::mock('overload:Icinga\Authentication\Backend\LdapUserBackend') + Mockery::mock('overload:Icinga\Authentication\User\LdapUserBackend') ->shouldReceive('assertAuthenticationPossible')->andReturnNull(); $form = Mockery::mock('Icinga\Forms\Config\Authentication\LdapBackendForm[getView]'); @@ -52,7 +52,7 @@ class LdapBackendFormTest extends BaseTestCase public function testInvalidBackendIsNotValid() { $this->setUpResourceFactoryMock(); - Mockery::mock('overload:Icinga\Authentication\Backend\LdapUserBackend') + Mockery::mock('overload:Icinga\Authentication\User\LdapUserBackend') ->shouldReceive('assertAuthenticationPossible')->andThrow(new AuthenticationException); $form = Mockery::mock('Icinga\Forms\Config\Authentication\LdapBackendForm[getView]');