Fix failing unit test after upgrading Pest to latest version

This commit is contained in:
gdarko
2024-01-29 08:34:37 +01:00
parent d86d92a938
commit fe09d2e54c
3 changed files with 17 additions and 17 deletions

View File

@@ -2,7 +2,7 @@
use InvoiceShelf\Models\Setting;
use Illuminate\Support\Facades\Artisan;
use function Pest\Faker\faker;
use function Pest\Faker\fake;
beforeEach(function () {
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
@@ -10,9 +10,9 @@ beforeEach(function () {
});
test('set setting', function () {
$key = faker()->name;
$key = fake()->name;
$value = faker()->word;
$value = fake()->word;
Setting::setSetting($key, $value);