Skip to content

Commit 8ad33f5

Browse files
committed
#27044 Add case: Get Category without $storeId provided
1 parent 2d15e91 commit 8ad33f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/CategoryRepositoryTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ public function testGetCategoryForProvidedStore()
143143
{
144144
$categoryRepository = $this->repositoryFactory->create();
145145

146+
$categoryDefault = $categoryRepository->get(
147+
self::FIXTURE_TWO_STORES_CATEGORY_ID
148+
);
149+
150+
$this->assertSame('category-defaultstore', $categoryDefault->getUrlKey());
151+
146152
$categoryFirstStore = $categoryRepository->get(
147153
self::FIXTURE_TWO_STORES_CATEGORY_ID,
148154
self::FIXTURE_FIRST_STORE_CODE

0 commit comments

Comments
 (0)