public function _before(\Codeception\TestCase $test) { $this->initializeLaravel(); if ($this->app['db'] && $this->config['cleanup']) { $this->app['db']->beginTransaction(); } }