Skip to content

Commit

Permalink
chain expects
Browse files Browse the repository at this point in the history
  • Loading branch information
withinboredom committed Feb 6, 2024
1 parent 170c878 commit b1828a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Unit/OrchestrationHistoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
it('can be started', function () {
$instance = getOrchestration('test', fn() => true, [], $nextEvent);
$result = processEvent($nextEvent, $instance->applyStartOrchestration(...));
expect($result)->toBeEmpty();
expect($instance)->toHaveStatus(RuntimeStatus::Completed);
expect($result)->toBeEmpty()
->and($instance)->toHaveStatus(RuntimeStatus::Completed);
});

it('can handle oop orchestration', function () {
Expand All @@ -54,8 +54,8 @@ public function entry(string $test): string

$instance = getOrchestration(id: 'test', orchestration: $orchestration, input: ['test' => 'hello world'], nextEvent: $nextEvent);
$result = processEvent($nextEvent, $instance->applyStartOrchestration(...));
expect($result)->toBeEmpty();
expect($instance)->toHaveStatus(RuntimeStatus::Completed);
expect($result)->toBeEmpty()
->and($instance)->toHaveStatus(RuntimeStatus::Completed);
});

it('returns a result to the parent', function () {
Expand All @@ -67,8 +67,8 @@ public function entry(string $test): string
StartExecution::asChild(new OrchestrationInstance('parent', 'parent'), [], [])
);
$result = processEvent($nextEvent, $instance->applyStartOrchestration(...));
expect($result)->toHaveCount(1);
expect($instance)->toHaveStatus(RuntimeStatus::Completed);
expect($result)->toHaveCount(1)
->and($instance)->toHaveStatus(RuntimeStatus::Completed);
});

it('properly delays when using timers', function () {
Expand Down

0 comments on commit b1828a5

Please sign in to comment.