mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +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);
|
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::updateTablesSchema();
|
||||||
|
|
||||||
self::createSetOfUserTests();
|
self::createSetOfUserTests();
|
||||||
@@ -102,26 +112,6 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
|||||||
parent::tearDownAfterClass();
|
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
|
* Delete all ressources created during the test
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user