File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 45
45
46
46
define ('FIXTURE_DIR ' , __DIR__ . "/../tests/fixtures " );
47
47
48
+ // Check the resources state before trying to be sure that the tests are executed with up-to-date dependencies.
49
+ require_once dirname (__DIR__ ) . '/src/Glpi/Application/ResourcesChecker.php ' ;
50
+ (new \Glpi \Application \ResourcesChecker (dirname (__DIR__ )))->checkResources ();
51
+
48
52
// Make sure cached content like twig template is cleared before running the tests.
49
53
// It seems calling $cache_manager->resetAllCaches(); mess up with the kernel
50
54
// leading to some issues. It is safer to use the console directly as it goes
Original file line number Diff line number Diff line change 43
43
define ('TU_USER ' , '_test_user ' );
44
44
define ('TU_PASS ' , 'PhpUnit_4 ' );
45
45
46
+ // Check the resources state before trying to be sure that the tests are executed with up-to-date dependencies.
47
+ require_once dirname (__DIR__ ) . '/src/Glpi/Application/ResourcesChecker.php ' ;
48
+ (new \Glpi \Application \ResourcesChecker (dirname (__DIR__ )))->checkResources ();
49
+
46
50
// Make sure cached content like twig template is cleared before running the tests.
47
51
// It seems calling $cache_manager->resetAllCaches(); mess up with the kernel
48
52
// leading to some issues. It is safer to use the console directly as it goes
You can’t perform that action at this time.
0 commit comments