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

Method testRemoveOnCompleteOptions

php/tests/JobOptionsTest.php:74–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

fromArrayMethod · 0.80

Tested by

no test coverage detected