'DatabaseSeeder', '--force' => true]); Artisan::call('db:seed', ['--class' => 'DemoSeeder', '--force' => true]); Sanctum::actingAs(User::find(1), ['*']); }); test('it refuses with a usable message when gotenberg is unreachable', function () { config(['pdf.connections.gotenberg.host' => 'http://127.0.0.1:1']); $exit = Artisan::call('pdf:compare'); expect($exit)->toBe(Command::FAILURE) ->and(Artisan::output())->toContain('not reachable'); }); test('it does not change the documents it compares', function () { config(['pdf.connections.gotenberg.host' => 'http://127.0.0.1:1']); $before = Invoice::orderBy('id')->pluck('template_name', 'id')->all(); Artisan::call('pdf:compare'); expect(Invoice::orderBy('id')->pluck('template_name', 'id')->all())->toBe($before); });