mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Fix latest rebase
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user