mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fixup some tests using UserManipulator
This commit is contained in:
@@ -84,7 +84,7 @@ class UserManipulatorTest extends \PhraseanetTestCase
|
||||
->getMock();
|
||||
|
||||
$user = self::$DI['app']['manipulator.user']->createUser('login', 'password');
|
||||
$manipulator = new UserManipulator($manager, $passwordInterface, $geonamesConnector, self::$DI['app']['repo.tasks'], self::$DI['app']['random.low']);
|
||||
$manipulator = new UserManipulator($manager, $passwordInterface, $geonamesConnector, self::$DI['app']['repo.tasks'], self::$DI['app']['random.low'], self::$DI['app']['dispatcher']);
|
||||
|
||||
$manipulator->setGeonameId($user, 4);
|
||||
$this->assertEquals(4, $user->getGeonameId());
|
||||
@@ -150,7 +150,7 @@ class UserManipulatorTest extends \PhraseanetTestCase
|
||||
$passwordInterface = $this->getMockBuilder('Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface')
|
||||
->getMock();
|
||||
$user = self::$DI['app']['manipulator.user']->createUser('login', 'password');
|
||||
$manipulator = new UserManipulator($manager, $passwordInterface, $geonamesConnector, self::$DI['app']['repo.tasks'], self::$DI['app']['random.low']);
|
||||
$manipulator = new UserManipulator($manager, $passwordInterface, $geonamesConnector, self::$DI['app']['repo.tasks'], self::$DI['app']['random.low'], self::$DI['app']['dispatcher']);
|
||||
$this->setExpectedException(
|
||||
'Alchemy\Phrasea\Exception\InvalidArgumentException',
|
||||
'Invalid geonameid -1.'
|
||||
|
Reference in New Issue
Block a user