Skip to content

Commit acb8642

Browse files
committed
Updated unit test and make sure it passes the store id to the get call 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.
1 parent cb685d1 commit acb8642

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Product/AnchorUrlRewriteGeneratorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ public function testGenerateCategories()
100100
->expects($this->any())
101101
->method('get')
102102
->withConsecutive(
103-
[ 'category_id' => $categoryIds[0]],
104-
[ 'category_id' => $categoryIds[1]],
105-
[ 'category_id' => $categoryIds[2]]
103+
[$categoryIds[0], $storeId],
104+
[$categoryIds[1], $storeId],
105+
[$categoryIds[2], $storeId],
106106
)
107107
->will($this->returnValue($category));
108108
$this->categoryRegistry->expects($this->any())->method('getList')

0 commit comments

Comments
 (0)