mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Remove constructor as defining the constructor function breaks the functionality of data providers
This commit is contained in:
@@ -83,6 +83,16 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
self::$time_start = microtime(true);
|
||||
}
|
||||
|
||||
//check if app is set up
|
||||
if ( ! setup::is_installed()) {
|
||||
exit("\033[0;31mPhraseanet is not set up\033[0;37m\r\n");
|
||||
}
|
||||
|
||||
//init core
|
||||
if (null === self::$core) {
|
||||
self::$core = \bootstrap::getCore();
|
||||
}
|
||||
|
||||
self::updateTablesSchema();
|
||||
|
||||
self::createSetOfUserTests();
|
||||
@@ -102,26 +112,6 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
parent::tearDownAfterClass();
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete temporay sqlite database
|
||||
* Create schema using $this->classesMetatdas
|
||||
* Load DoctrineTestServices
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//check if app is set up
|
||||
if ( ! setup::is_installed()) {
|
||||
exit("\033[0;31mPhraseanet is not set up\033[0;37m\r\n");
|
||||
}
|
||||
|
||||
//init core
|
||||
if (null === self::$core) {
|
||||
self::$core = \bootstrap::getCore();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all ressources created during the test
|
||||
*/
|
||||
|
Reference in New Issue
Block a user