mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-09 14:34:47 +00:00
Fix failing unit test after upgrading Pest to latest version
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user