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

@@ -3,7 +3,7 @@
use InvoiceShelf\Models\Company;
use InvoiceShelf\Models\CompanySetting;
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]);
@@ -17,9 +17,9 @@ test('company setting belongs to company', function () {
});
test('set settings', function () {
$key = faker()->name;
$key = fake()->name;
$value = faker()->word;
$value = fake()->word;
$company = Company::factory()->create();
@@ -31,9 +31,9 @@ test('set settings', function () {
});
test('get settings', function () {
$key = faker()->name;
$key = fake()->name;
$value = faker()->word;
$value = fake()->word;
$company = Company::factory()->create();