Pest v4 discovery fails when unit tests re-bind the test case with uses(TestCase::class). Remove per-file bindings and keep RefreshDatabase where needed. Also update RunBackupScheduleJobTest to pass BulkOperationService when calling handle() manually.
10 lines
306 B
PHP
10 lines
306 B
PHP
<?php
|
|
|
|
it('shortens external ids for picker display', function () {
|
|
expect(\App\Livewire\BackupSetPolicyPickerTable::externalIdShort('00000000-0000-0000-0000-1234abcd'))
|
|
->toBe('1234abcd');
|
|
|
|
expect(\App\Livewire\BackupSetPolicyPickerTable::externalIdShort(null))
|
|
->toBe('—');
|
|
});
|