Just found out it relates to:
Config::shouldReceive('get')->once()->with('title')->shouldReceive('offsetGet');
In app/tests/TestCase.php $testEnvironment was set to a wrong environment which caused this error.
Hi!
I am having the same problem and I have it like this:
<?php
class TestCase extends Illuminate\Foundation\Testing\TestCase {
/**
* Creates the application.
*
* @return Symfony\Component\HttpKernel\HttpKernelInterface
*/
public function createApplication()
{
$unitTesting = true;
$testEnvironment = 'testing';
return require __DIR__.'/../../bootstrap/start.php';
}
}
How it's suppose to be?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community