I have a UsersTableSeeder which generates a Passport personal token:
$user = factory(User::class)->create([
'email' => 'someone@example.com',
]);
Artisan::call('passport:client', [
'--personal' => 'default',
'--no-interaction' => true,
]);
However, when I seed my tests with $this->artisan('db:seed');
, I'm receiving the following error:
Mockery\Exception\BadMethodCallException: Received Mockery_1_Illuminate_Console_OutputStyle::askQuestion(), but no expectations were specified