()
| 10 | class JobOptionsTest extends TestCase |
| 11 | { |
| 12 | public function testCanCreateFromArray(): void |
| 13 | { |
| 14 | $options = JobOptions::fromArray([ |
| 15 | 'jobId' => 'test-id', |
| 16 | 'delay' => 1000, |
| 17 | 'priority' => 5, |
| 18 | 'attempts' => 3, |
| 19 | ]); |
| 20 | |
| 21 | $this->assertEquals('test-id', $options->jobId); |
| 22 | $this->assertEquals(1000, $options->delay); |
| 23 | $this->assertEquals(5, $options->priority); |
| 24 | $this->assertEquals(3, $options->attempts); |
| 25 | } |
| 26 | |
| 27 | public function testCanConvertToArray(): void |
| 28 | { |