Fixture built. Auditing… ✓ 1 OK row ✓ 1 missing_bytes row ✓ 2 orphan_bytes (stray + old-doc) ✓ 1 ownership_violation ✓ 1 unrecoverable ✓ is_healthy = false (drift detected) Running DRY-RUN repair… ✓ dry-run: would delete 2 orphans ✓ dry-run: would enqueue 1 refetch ✓ dry-run: would clear 1 ownership_violation ✓ dry-run: would mark 1 unrecoverable ✓ dry-run: stray.txt untouched
The following jobs were pushed unexpectedly: - App\Jobs\Transliteration\LocalizeFirstNameJob Failed asserting that an array is empty.
PHPUnit\Framework\Constraint\Constraint->fail(array, string)PHPUnit\Framework\Constraint\Constraint->fail(array, string)PHPUnit\Framework\Constraint\Constraint->evaluate(array, string)PHPUnit\Framework\Assert::assertThat(array, object(PHPUnit\Framework\Constraint\IsEmpty), string)PHPUnit\Framework\Assert::assertEmpty(array, string)Illuminate\Support\Testing\Fakes\QueueFake->assertNothingPushed()Illuminate\Support\Facades\Facade::__callStatic(string, array)156$dryStats['ownership_violations_cleared'] === 1 ? ok('dry-run: would clear 1 ownership_violation') : bad('dry ownership count', (string) $dryStats['ownership_violations_cleared']);157$dryStats['unrecoverable_marked_failed'] === 1 ? ok('dry-run: would mark 1 unrecoverable') : bad('dry unrec count', (string) $dryStats['unrecoverable_marked_failed']);158159// Dry-run must leave state alone.160$disk->exists("{$root}/stray.txt") ? ok('dry-run: stray.txt untouched') : bad('dry-run deleted disk file');161Queue::assertNothingPushed(); // nothing should hit the queue in dry-run162ok('dry-run: nothing pushed to queue');163164echo "\nRunning LIVE repair…\n";165$stats = $validator->repair($audit, dryRun: false);166167// Orphan deletion168! $disk->exists("{$root}/stray.txt") ? ok('orphan stray.txt deleted') : bad('orphan still on disk');169! $disk->exists("{$root}/other/old-doc.pdf") ? ok('orphan other/old-doc.pdf deleted') : bad('subfolder orphan still on disk');170171// OK row untouched172$disk->exists("{$root}/logo.png") ? ok('OK file still on disk') : bad('OK file deleted!');173delete from `startups` where `monday_item_id` = 7900000001insert into `startups` (`monday_item_id`, `name`, `is_active`, `last_synced_at`, `updated_at`, `created_at`) values (7900000001, 'Integrity Validator Test', 1, '2026-09-29 18:27:45', '2026-09-29 18:27:45', '2026-09-29 18:27:45')delete from `files` where `related_entity_type` = 'App\Models\Startup' and `related_entity_id` = 678insert into `files` (`related_entity_type`, `related_entity_id`, `source_column_id`, `slot`, `monday_asset_id`, `monday_item_id`, `file_name`, `file_path`, `disk`, `file_type`, `status`, `updated_at`, `created_at`) values ('App\Models\Startup', 678, 'files1', 'logo', 12001, 7900000001, 'logo.png', 'startups/678/logo.png', 'public', 'image', 'ready', '2026-09-29 18:27:45', '2026-09-29 18:27:45')insert into `files` (`related_entity_type`, `related_entity_id`, `source_column_id`, `slot`, `monday_asset_id`, `monday_item_id`, `file_name`, `file_path`, `disk`, `file_type`, `status`, `updated_at`, `created_at`) values ('App\Models\Startup', 678, 'files8', 'pitch_deck', 12002, 7900000001, 'deck.pdf', 'startups/678/pitch_deck.pdf', 'public', 'pdf', 'ready', '2026-09-29 18:27:45', '2026-09-29 18:27:45')insert into `files` (`related_entity_type`, `related_entity_id`, `source_column_id`, `slot`, `monday_asset_id`, `monday_item_id`, `file_name`, `file_path`, `disk`, `file_type`, `status`, `updated_at`, `created_at`) values ('App\Models\Startup', 678, 'files1', 'logo', 12003, 7900000001, 'cross-startup.png', 'startups/999999/logo.png', 'public', 'image', 'ready', '2026-09-29 18:27:45', '2026-09-29 18:27:45')insert into `files` (`related_entity_type`, `related_entity_id`, `source_column_id`, `slot`, `monday_asset_id`, `monday_item_id`, `file_name`, `file_path`, `disk`, `file_type`, `status`, `updated_at`, `created_at`) values ('App\Models\Startup', 678, 'files_1', 'other', 0, 7900000001, 'lost.docx', 'startups/678/other/lost.docx', 'public', 'document', 'ready', '2026-09-29 18:27:45', '2026-09-29 18:27:45')select * from `files` where `related_entity_type` = 'App\Models\Startup' and `related_entity_id` = 678