Replace setters

This commit is contained in:
Nicolas Le Goff
2013-11-16 18:15:53 +01:00
parent c156f842c7
commit 3322437648
15 changed files with 81 additions and 82 deletions

View File

@@ -64,11 +64,11 @@ class AccountCreatorTest extends \PhraseanetTestCase
{
$random = self::$DI['app']['tokens'];
$template1 = self::$DI['app']['manipulator.user']->createUser('template' . $random->generatePassword(), $random->generatePassword());
$template1->set_template(self::$DI['user']);
$template1->setModel(self::$DI['user']);
$template2 = self::$DI['app']['manipulator.user']->createUser('template' . $random->generatePassword(), $random->generatePassword());
$template2->set_template(self::$DI['user']);
$template2->setModel(self::$DI['user']);
$template3 = self::$DI['app']['manipulator.user']->createUser('template' . $random->generatePassword(), $random->generatePassword());
$template3->set_template(self::$DI['user']);
$template3->setModel(self::$DI['user']);
$templates = array($template1, $template2);
$extra = array($template3);