mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Switch purgeDatabase to static method
This commit is contained in:
@@ -217,7 +217,7 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
|||||||
/**
|
/**
|
||||||
* Purge sqlLite test temporary database by truncate all existing tables
|
* Purge sqlLite test temporary database by truncate all existing tables
|
||||||
*/
|
*/
|
||||||
protected function purgeDatabase()
|
protected static function purgeDatabase()
|
||||||
{
|
{
|
||||||
$purger = new Doctrine\Common\DataFixtures\Purger\ORMPurger();
|
$purger = new Doctrine\Common\DataFixtures\Purger\ORMPurger();
|
||||||
$executor = new Doctrine\Common\DataFixtures\Executor\ORMExecutor(self::$application['EM'], $purger);
|
$executor = new Doctrine\Common\DataFixtures\Executor\ORMExecutor(self::$application['EM'], $purger);
|
||||||
|
Reference in New Issue
Block a user