You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method _after(TestCase $test) in codeception\src\Codeception\Module\Laravel4.php contains following lines:
if ($this->app['db'] && $this->cleanupDatabase()) {
$this->app['db']->rollback();
}
My project does not use Database Service (Elastic Search in place) so I have disabled DatabaseServiceProvider in Laravel config. That's why it fails on if($this->app['db']) part. From debugging step by step I know that instead of calling offsetExists it immediately invokes offsetGet in Illuminate\Container\Container:
Method
_after(TestCase $test)
incodeception\src\Codeception\Module\Laravel4.php
contains following lines:My project does not use Database Service (Elastic Search in place) so I have disabled
DatabaseServiceProvider
in Laravel config. That's why it fails onif($this->app['db'])
part. From debugging step by step I know that instead of callingoffsetExists
it immediately invokesoffsetGet
inIlluminate\Container\Container
:What I get is
ReflectionException
- "Class db does not exist" fromContainer::build()
Same thing happens inside
function _before(TestCase $test)
.I'm not sure what triggers this error: this module, Laravel, PHP engine or quantum physics.
The text was updated successfully, but these errors were encountered: