Fix latest rebase

This commit is contained in:
Nicolas Le Goff
2014-02-19 20:34:56 +01:00
parent 0cb75cdf95
commit 11178d7e63
2 changed files with 3 additions and 3 deletions

View File

@@ -219,7 +219,7 @@ class AuthenticatorTest extends \PhraseanetTestCase
$app['EM'] = $em = $this->getEntityManagerMock(); $app['EM'] = $em = $this->getEntityManagerMock();
$app['EM']->expects($this->any())->method('find')->with( $app['EM']->expects($this->any())->method('find')->with(
$this->equalTo('Alchemy\Phrasea\Model\Entities\Session'), $this->equalTo('Phraseanet:Session'),
$this->equalTo(1) $this->equalTo(1)
)->will($this->returnValue($sessionEntity)); )->will($this->returnValue($sessionEntity));

View File

@@ -1511,7 +1511,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
$this->assertSame(302, self::$DI['client']->getResponse()->getStatusCode()); $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']); ->findBy(['user' => self::$DI['user']->getId(), 'provider' => 'provider-test']);
$this->assertCount(1, $ret); $this->assertCount(1, $ret);
@@ -1582,7 +1582,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
$this->assertSame(302, self::$DI['client']->getResponse()->getStatusCode()); $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']); ->findBy(['user' => $user->getId(), 'provider' => 'provider-test']);
$this->assertCount(1, $ret); $this->assertCount(1, $ret);