Fix tests

This commit is contained in:
Nicolas Le Goff
2013-12-05 14:21:50 +01:00
parent 49744c5e2f
commit b341495c88
122 changed files with 963 additions and 3454 deletions

View File

@@ -54,7 +54,7 @@ class EmitterTest extends \PhraseanetTestCase
->method('getEmail')
->will($this->returnValue($this->email));
$object = Emitter::fromUser($user);
$object = Emitter::fromUser($user, self::$DI['app']['translator']);
$this->assertEquals($this->email, $object->getEmail());
$this->assertEquals($this->name, $object->getName());
}
@@ -77,7 +77,7 @@ class EmitterTest extends \PhraseanetTestCase
->will($this->returnValue('wrong email'));
try {
Emitter::fromUser($user);
Emitter::fromUser($user, self::$DI['app']['translator']);
$this->fail('Should have raised an exception');
} catch (InvalidArgumentException $e) {

View File

@@ -54,7 +54,7 @@ class ReceiverTest extends \PhraseanetTestCase
->method('getEmail')
->will($this->returnValue($this->email));
$object = Receiver::fromUser($user);
$object = Receiver::fromUser($user, self::$DI['app']['translator']);
$this->assertEquals($this->email, $object->getEmail());
$this->assertEquals($this->name, $object->getName());
}
@@ -77,7 +77,7 @@ class ReceiverTest extends \PhraseanetTestCase
->will($this->returnValue('wrong user'));
try {
Receiver::fromUser($user);
Receiver::fromUser($user, self::$DI['app']['translator']);
$this->fail('Should have raised an exception');
} catch (InvalidArgumentException $e) {