getModule('\Helper\DelayedDb'); } public function getBrowserModule() { return $this->getModule('PhpBrowser'); } public function _beforeSuite($settings = array()) { $this->deployer = \DeployerFactory::create(); $this->deployer->setComponents($this->deployer_components); $this->deployer->start(); $this->_callbackDeployerStarted(); foreach ($this->getModules() as $module) { if (!$module instanceof $this) { $module->_beforeSuite(); } } } public function _afterSuite() { $this->deployer->stop(); } protected function _callbackDeployerStarted() { foreach ($this->deployer_components as $component) { $method = "reconfigure_{$component}"; if (method_exists($this->deployer, $method)) { $this->deployer->$method($this); } } } public function _before(?\Codeception\TestInterface $test = null) { $this->_callbackDeployerStarted(); } }