This commit is contained in:
Nicolas Le Goff
2014-07-17 15:17:04 +02:00
parent fcdc10c554
commit 66fa05f4ee
92 changed files with 336 additions and 406 deletions

View File

@@ -24,7 +24,7 @@ class ApiLogManipulatorTest extends \PhraseanetTestCase
*/
public function testsLogHydration($path, $expected)
{
$emMock = $this->getMock('\Doctrine\ORM\EntityManager', array('persist', 'flush'), array(), '', false);
$emMock = $this->getMock('\Doctrine\ORM\EntityManager', ['persist', 'flush'], [], '', false);
$account = $this->getMock('\Alchemy\Phrasea\Model\Entities\ApiAccount');
$manipulator = new ApiLogManipulator($emMock, self::$DI['app']['repo.api-logs']);
$log = $manipulator->create($account, Request::create($path, 'POST'), new Response());