public static function setUpBeforeClass()
 {
     self::$root = BP;
     self::$rootJson = json_decode(file_get_contents(self::$root . '/composer.json'), true);
     self::$dependencies = [];
     self::$objectManager = Bootstrap::create(BP, $_SERVER)->getObjectManager();
 }
Exemplo n.º 2
0
 public static function setUpBeforeClass()
 {
     if (defined('TESTS_COMPOSER_PATH')) {
         self::$composerPath = TESTS_COMPOSER_PATH;
     }
     self::$shell = self::createShell();
     self::$isComposerAvailable = self::isComposerAvailable();
     self::$root = Files::init()->getPathToSource();
     self::$rootJson = json_decode(file_get_contents(self::$root . '/composer.json'), true);
     self::$dependencies = [];
 }