From 11178d7e63940176f134906c3dcdef78d9257b86 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Wed, 19 Feb 2014 20:34:56 +0100 Subject: [PATCH] Fix latest rebase --- .../Tests/Phrasea/Authentication/AuthenticatorTest.php | 2 +- tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Alchemy/Tests/Phrasea/Authentication/AuthenticatorTest.php b/tests/Alchemy/Tests/Phrasea/Authentication/AuthenticatorTest.php index ad30193743..cf10a9478f 100644 --- a/tests/Alchemy/Tests/Phrasea/Authentication/AuthenticatorTest.php +++ b/tests/Alchemy/Tests/Phrasea/Authentication/AuthenticatorTest.php @@ -219,7 +219,7 @@ class AuthenticatorTest extends \PhraseanetTestCase $app['EM'] = $em = $this->getEntityManagerMock(); $app['EM']->expects($this->any())->method('find')->with( - $this->equalTo('Alchemy\Phrasea\Model\Entities\Session'), + $this->equalTo('Phraseanet:Session'), $this->equalTo(1) )->will($this->returnValue($sessionEntity)); diff --git a/tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php b/tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php index b810f55559..a68554127e 100644 --- a/tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php +++ b/tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php @@ -1511,7 +1511,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase $this->assertSame(302, self::$DI['client']->getResponse()->getStatusCode()); - $ret = self::$DI['app']['EM']->getRepository('\Alchemy\Phrasea\Model\Entities\UsrAuthProvider') + $ret = self::$DI['app']['EM']->getRepository('Phraseanet:UsrAuthProvider') ->findBy(['user' => self::$DI['user']->getId(), 'provider' => 'provider-test']); $this->assertCount(1, $ret); @@ -1582,7 +1582,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase $this->assertSame(302, self::$DI['client']->getResponse()->getStatusCode()); - $ret = self::$DI['app']['EM']->getRepository('\Alchemy\Phrasea\Model\Entities\UsrAuthProvider') + $ret = self::$DI['app']['EM']->getRepository('Phraseanet:UsrAuthProvider') ->findBy(['user' => $user->getId(), 'provider' => 'provider-test']); $this->assertCount(1, $ret);