This commit is contained in:
Romain Neutron
2013-09-04 12:13:33 +02:00
parent dbd06e9091
commit b6a8a90197
11 changed files with 63 additions and 65 deletions

View File

@@ -29,7 +29,7 @@ class LoadFiveBaskets extends \PhraseaFixture\AbstractWZ implements FixtureInter
public function load(ObjectManager $manager) public function load(ObjectManager $manager)
{ {
for ($i = 0; $i < 5; $i ++ ) { for ($i = 0; $i < 5; $i ++) {
$basket = new \Entities\Basket(); $basket = new \Entities\Basket();
$basket->setName('test ' . $i); $basket->setName('test ' . $i);

View File

@@ -6,6 +6,5 @@
use Alchemy\Phrasea\CLI; use Alchemy\Phrasea\CLI;
return call_user_func(function (CLI $cli) { return call_user_func(function (CLI $cli) {
return $cli; return $cli;
}, $cli); }, $cli);

View File

@@ -6,6 +6,5 @@
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
return call_user_func(function (Application $app) { return call_user_func(function (Application $app) {
return $app; return $app;
}, $app); }, $app);

View File

@@ -446,6 +446,7 @@ class LazaretTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
$phpunit = $this; $phpunit = $this;
self::$DI['app']['phraseanet.logger'] = self::$DI['app']->protect(function () use (&$called, $phpunit) { self::$DI['app']['phraseanet.logger'] = self::$DI['app']->protect(function () use (&$called, $phpunit) {
$called = true; $called = true;
return $phpunit->getMockBuilder('\Session_Logger') return $phpunit->getMockBuilder('\Session_Logger')
->disableOriginalConstructor() ->disableOriginalConstructor()
->getMock(); ->getMock();

View File

@@ -108,7 +108,6 @@ class UploadTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
} }
} }
/** /**
* @covers Alchemy\Phrasea\Controller\Prod\Upload::upload * @covers Alchemy\Phrasea\Controller\Prod\Upload::upload
* @covers Alchemy\Phrasea\Controller\Prod\Upload::getJsonResponse * @covers Alchemy\Phrasea\Controller\Prod\Upload::getJsonResponse