@@ -421,13 +421,13 @@ public function testNeedsRebuildOptionIncludesRunsMissingLineageProjectionRows()
421421
422422 public function testNeedsRebuildOptionIncludesRunsWithStaleSelectedRunProjectionPayloads (): void
423423 {
424- [, $ waitRun ] = $ this ->createWaitingRun ('projection-command- stale-wait-selected ' );
425- [, $ timelineRun ] = $ this ->createCompletedRun ('projection-command- stale-timeline-selected ' );
426- [, $ lineageRun ] = $ this ->createCompletedRun ('projection-command- stale-lineage-selected ' );
427- [, $ timerRun ] = $ this ->createWaitingRun ('projection-command- stale-timer-selected ' );
424+ [, $ waitRun ] = $ this ->createWaitingRun ('proj- stale-wait-sel ' );
425+ [, $ timelineRun ] = $ this ->createCompletedRun ('proj- stale-timeline-sel ' );
426+ [, $ lineageRun ] = $ this ->createCompletedRun ('proj- stale-lineage-sel ' );
427+ [, $ timerRun ] = $ this ->createWaitingRun ('proj- stale-timer-sel ' );
428428
429429 ActivityExecution::query ()->create ([
430- 'id ' => 'projection-command -stale-wait-activity ' ,
430+ 'id ' => 'proj -stale-wait-activity ' ,
431431 'workflow_run_id ' => $ waitRun ->id ,
432432 'sequence ' => 1 ,
433433 'activity_class ' => 'ProjectionSelectedWaitActivity ' ,
@@ -451,7 +451,7 @@ public function testNeedsRebuildOptionIncludesRunsWithStaleSelectedRunProjection
451451 ],
452452 );
453453 WorkflowTimer::query ()->create ([
454- 'id ' => 'projection-command -stale-timer ' ,
454+ 'id ' => 'proj -stale-timer ' ,
455455 'workflow_run_id ' => $ timerRun ->id ,
456456 'sequence ' => 1 ,
457457 'status ' => 'pending ' ,
@@ -483,15 +483,15 @@ public function testNeedsRebuildOptionIncludesRunsWithStaleSelectedRunProjection
483483 WorkflowRunLineageEntry::query ()
484484 ->where ('workflow_run_id ' , $ lineageRun ->id )
485485 ->update ([
486- 'related_workflow_run_id ' => 'projection-stale-child-run-wrong ' ,
486+ 'related_workflow_run_id ' => 'projection-stale-child-bad ' ,
487487 ]);
488488 $ timerEntry = WorkflowRunTimerEntry::query ()
489489 ->where ('workflow_run_id ' , $ timerRun ->id )
490490 ->firstOrFail ();
491491 $ timerPayload = $ timerEntry ->payload ;
492492 unset($ timerPayload ['row_status ' ]);
493493 $ timerEntry ->forceFill ([
494- 'schema_version ' => WorkflowRunTimerEntry::LEGACY_SCHEMA_VERSION ,
494+ 'schema_version ' => WorkflowRunTimerEntry::CURRENT_SCHEMA_VERSION - 1 ,
495495 'payload ' => $ timerPayload ,
496496 ])->save ();
497497
@@ -507,7 +507,7 @@ public function testNeedsRebuildOptionIncludesRunsWithStaleSelectedRunProjection
507507 ]);
508508 $ this ->assertDatabaseHas ('workflow_run_waits ' , [
509509 'workflow_run_id ' => $ waitRun ->id ,
510- 'wait_id ' => 'activity:projection-command -stale-wait-activity ' ,
510+ 'wait_id ' => 'activity:proj -stale-wait-activity ' ,
511511 'target_type ' => 'projection.selected.wait ' ,
512512 ]);
513513 $ this ->assertDatabaseMissing ('workflow_run_timeline_entries ' , [
@@ -521,7 +521,7 @@ public function testNeedsRebuildOptionIncludesRunsWithStaleSelectedRunProjection
521521 ]);
522522 $ this ->assertDatabaseMissing ('workflow_run_lineage_entries ' , [
523523 'workflow_run_id ' => $ lineageRun ->id ,
524- 'related_workflow_run_id ' => 'projection-stale-child-run-wrong ' ,
524+ 'related_workflow_run_id ' => 'projection-stale-child-bad ' ,
525525 ]);
526526 $ this ->assertDatabaseHas ('workflow_run_lineage_entries ' , [
527527 'workflow_run_id ' => $ lineageRun ->id ,
@@ -530,7 +530,7 @@ public function testNeedsRebuildOptionIncludesRunsWithStaleSelectedRunProjection
530530 ]);
531531 $ this ->assertDatabaseHas ('workflow_run_timer_entries ' , [
532532 'workflow_run_id ' => $ timerRun ->id ,
533- 'timer_id ' => 'projection-command -stale-timer ' ,
533+ 'timer_id ' => 'proj -stale-timer ' ,
534534 'schema_version ' => WorkflowRunTimerEntry::CURRENT_SCHEMA_VERSION ,
535535 ]);
536536 }
0 commit comments