Skip to content

Commit 0ca5d3a

Browse files
Add some missing trait method tests for the deduplicator methods.
1 parent 394cfb4 commit 0ca5d3a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/TraitTest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,26 @@ public function test_trait_can_set_message_group_id()
1414

1515
$this->assertEquals('test', $job->messageGroupId);
1616
}
17+
18+
public function test_trait_can_set_deduplicator()
19+
{
20+
$job = new Job();
21+
22+
$job->withDeduplicator('test');
23+
24+
$this->assertEquals('test', $job->deduplicator);
25+
}
26+
27+
public function test_trait_can_unset_deduplicator()
28+
{
29+
$job = new Job();
30+
31+
$job->withDeduplicator('test');
32+
33+
$this->assertEquals('test', $job->deduplicator);
34+
35+
$job->withoutDeduplicator();
36+
37+
$this->assertEquals('', $job->deduplicator);
38+
}
1739
}

0 commit comments

Comments
 (0)