We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbfb9b commit a5ef655Copy full SHA for a5ef655
src/Resource/Logbook/Flow.php
@@ -48,6 +48,6 @@ public function isRunning(): bool
48
49
public function isWaiting(): bool
50
{
51
- return $this->state === self::STATE_WAITING;
+ return empty($this->state) || $this->state === self::STATE_WAITING;
52
}
53
tests/unit/Resource/Logbook/FlowTest.php
@@ -57,6 +57,12 @@ public function testIsRunningReturnsFalse()
57
$this->assertFalse($flow->isRunning());
58
59
60
+ public function testIsWaitingReturnsTrueForEmptyState()
61
+ {
62
+ $flow = new Flow(['state' => null]);
63
+ $this->assertTrue($flow->isWaiting());
64
+ }
65
+
66
public function testIsWaitingReturnsTrue()
67
68
$flow = new Flow(['state' => 'waiting']);
0 commit comments