Switch purgeDatabase to static method

This commit is contained in:
Romain Neutron
2012-09-24 09:47:17 +02:00
parent 0b5a6d15f2
commit d9b2a1cf5b

View File

@@ -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);