MCPcopy Create free account
hub / github.com/taskforcesh/bullmq / testCanCreateFromArray

Method testCanCreateFromArray

php/tests/JobOptionsTest.php:12–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10class 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 {

Callers

nothing calls this directly

Calls 1

fromArrayMethod · 0.80

Tested by

no test coverage detected