From 8ad33f504b11976a4faa53c9024767a740e6bc44 Mon Sep 17 00:00:00 2001 From: Lukasz Bajsarowicz Date: Thu, 27 Feb 2020 09:10:07 +0100 Subject: [PATCH] #27044 Add case: Get Category without `$storeId` provided --- .../Magento/Catalog/Model/CategoryRepositoryTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev/tests/integration/testsuite/Magento/Catalog/Model/CategoryRepositoryTest.php b/dev/tests/integration/testsuite/Magento/Catalog/Model/CategoryRepositoryTest.php index 935f827159771..c4cabe46f5b32 100644 --- a/dev/tests/integration/testsuite/Magento/Catalog/Model/CategoryRepositoryTest.php +++ b/dev/tests/integration/testsuite/Magento/Catalog/Model/CategoryRepositoryTest.php @@ -143,6 +143,12 @@ public function testGetCategoryForProvidedStore() { $categoryRepository = $this->repositoryFactory->create(); + $categoryDefault = $categoryRepository->get( + self::FIXTURE_TWO_STORES_CATEGORY_ID + ); + + $this->assertSame('category-defaultstore', $categoryDefault->getUrlKey()); + $categoryFirstStore = $categoryRepository->get( self::FIXTURE_TWO_STORES_CATEGORY_ID, self::FIXTURE_FIRST_STORE_CODE