public function _before(\Codeception\TestCase $test)
    {
        $this->initializeLaravel();

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

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

@param \Codeception\TestCase $test
@throws ModuleConfig
Before hook .