| 72 | } |
| 73 | |
| 74 | public function testRemoveOnCompleteOptions(): void |
| 75 | { |
| 76 | // Boolean |
| 77 | $options = JobOptions::fromArray(['removeOnComplete' => true]); |
| 78 | $this->assertTrue($options->removeOnComplete); |
| 79 | |
| 80 | // Integer |
| 81 | $options = JobOptions::fromArray(['removeOnComplete' => 100]); |
| 82 | $this->assertEquals(100, $options->removeOnComplete); |
| 83 | |
| 84 | // Array |
| 85 | $options = JobOptions::fromArray(['removeOnComplete' => ['age' => 3600, 'count' => 100]]); |
| 86 | $this->assertEquals(['age' => 3600, 'count' => 100], $options->removeOnComplete); |
| 87 | } |
| 88 | |
| 89 | public function testParentConfiguration(): void |
| 90 | { |