What Changed Removed per-file uses(TestCase::class ...) bindings in Unit tests to avoid Pest v4 “folder already uses the test case” discovery failure (kept RefreshDatabase where needed). Updated the backup scheduling job test to pass the newly required BulkOperationService when manually calling RunBackupScheduleJob::handle(). Where Unit (bulk cleanup across 56 files) RunBackupScheduleJobTest.php Verification ./vendor/bin/sail test → 443 passed, 5 skipped Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local> Reviewed-on: #45
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('—');
|
|
});
|