Skip to content

Commit

Permalink
Updated unit test and make sure it passes the store id to the get cal…
Browse files Browse the repository at this point in the history
…l on the category repository. This is not testing for the bugfix but makes sure that when not passing the storeId param in the tested code, the test starts complaining.
  • Loading branch information
hostep committed Feb 9, 2020
1 parent cb685d1 commit acb8642
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ public function testGenerateCategories()
->expects($this->any())
->method('get')
->withConsecutive(
[ 'category_id' => $categoryIds[0]],
[ 'category_id' => $categoryIds[1]],
[ 'category_id' => $categoryIds[2]]
[$categoryIds[0], $storeId],
[$categoryIds[1], $storeId],
[$categoryIds[2], $storeId],
)
->will($this->returnValue($category));
$this->categoryRegistry->expects($this->any())->method('getList')
Expand Down

0 comments on commit acb8642

Please sign in to comment.