mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
fix some testes
This commit is contained in:
@@ -26,5 +26,10 @@ return call_user_func(function()
|
||||
$app->mount('/test', new ControllerUtils\PathFileTest());
|
||||
$app->mount('/connection_test', new ControllerUtils\ConnectionTest());
|
||||
|
||||
|
||||
$app->error(function($e){
|
||||
|
||||
});
|
||||
|
||||
return $app;
|
||||
});
|
||||
|
@@ -26,5 +26,10 @@ return call_user_func(function()
|
||||
$app->mount('/test', new ControllerUtils\PathFileTest());
|
||||
$app->mount('/connection_test', new ControllerUtils\ConnectionTest());
|
||||
|
||||
|
||||
$app->error(function($e){
|
||||
});
|
||||
|
||||
|
||||
return $app;
|
||||
});
|
||||
|
@@ -521,6 +521,7 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
$purger = new Doctrine\Common\DataFixtures\Purger\ORMPurger();
|
||||
$executor = new Doctrine\Common\DataFixtures\Executor\ORMExecutor(self::$core->getEntityManager(), $purger);
|
||||
$executor->execute(array());
|
||||
self::$core["CacheService"]->flushAll();
|
||||
}
|
||||
|
||||
protected function assertDateAtom($date)
|
||||
|
@@ -525,9 +525,6 @@ class record_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
*/
|
||||
public function testGet_container_baskets()
|
||||
{
|
||||
$appbox = appbox::get_instance(\bootstrap::getCore());
|
||||
$usr_id = $appbox->get_session()->get_usr_id();
|
||||
|
||||
$em = self::$core->getEntityManager();
|
||||
|
||||
$basket = $this->insertOneBasket();
|
||||
@@ -541,8 +538,7 @@ class record_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
$em->persist($basket_element);
|
||||
|
||||
$basket->addBasketElement($basket_element);
|
||||
|
||||
$em->merge($basket);
|
||||
$basket = $em->merge($basket);
|
||||
|
||||
$em->flush();
|
||||
|
||||
|
Reference in New Issue
Block a user