Skip to content

Commit

Permalink
Add locked_at parameter to job assert tests (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsuravech authored Apr 15, 2019
1 parent a63ea9e commit f2b6fc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/QueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ public function testMerging()
'data_size' => 3,
'store_id' => '1',
'merged_ids' => array('1', '7'),
'locked_at' => null
);

$this->assertEquals($expectedCategoryJob, $mergedJobs[0]);
Expand All @@ -261,6 +262,7 @@ public function testMerging()
'data_size' => 2,
'store_id' => '1',
'merged_ids' => array('4', '10'),
'locked_at' => null
);

$this->assertEquals($expectedProductJob, $mergedJobs[3]);
Expand Down Expand Up @@ -348,6 +350,7 @@ public function testGetJobs()
'data_size' => 3,
'store_id' => '1',
'merged_ids' => array('1', '7'),
'locked_at' => null
);

$expectedLastJob = array(
Expand All @@ -369,6 +372,7 @@ public function testGetJobs()
'data_size' => 2,
'store_id' => '3',
'merged_ids' => array('6', '12'),
'locked_at' => null
);

$this->assertEquals($expectedFirstJob, reset($jobs));
Expand Down

0 comments on commit f2b6fc7

Please sign in to comment.