i must press enter on running tests using phpunit in Laravel 5.7.
On every test i get following Message:
1) Tests\Feature\DepartmentsTest::a_admin_can_create_a_department Mockery\Exception\BadMethodCallException: Received Mockery_1_Illuminate_Console_OutputStyle::askQuestion(), but no expectations were specified
by setting following to false, the error disappear:
public $mockConsoleOutput = false;
After that the window hangs on running the test suite and i need to press enter to run the tests.
How can i fix that?
I´am using Windows 10 + PHPUnit 7.5.1 and Laravel 5.7.19
Thanks in advance!
/** @test */
public function a_admin_can_create_a_department()
{
// $this->withoutExceptionHandling();
$attributes = [
'description' => 'Service',
'accessible_by_depart' => true
];
$this->post('/tools/api/storeDepartment', $attributes);
$this->assertDatabaseHas('departments', $attributes);
}