Skip to content

Commit dfd4ac3

Browse files
committed
36394: Fix integration and static failures
1 parent ef72911 commit dfd4ac3

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Category/Save/UpdateCategoryTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ protected function setUp(): void
4848
public function testUpdateCategoryForDefaultStoreView(array $postData): void
4949
{
5050
$storeId = (int)$this->storeManager->getStore('default')->getId();
51-
$postData = array_merge($postData, ['store_id' => $storeId]);
5251
$responseData = $this->performSaveCategoryRequest($postData);
5352
$this->assertRequestIsSuccessfullyPerformed($responseData);
54-
$category = $this->categoryRepository->get($postData['entity_id'], $postData['store_id']);
53+
$category = $this->categoryRepository->get($postData['entity_id'], $storeId);
5554
unset($postData['use_default']);
5655
unset($postData['use_config']);
5756
foreach ($postData as $key => $value) {

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/CategoryTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ public function testDefaultValueForCategoryUrlPath(): void
153153
$categoryId = 3;
154154
$category = $this->categoryRepository->get($categoryId);
155155
$newUrlPath = 'test_url_path';
156-
$defaultUrlPath = $category->getData('url_path');
157156

158157
// update url_path and check it
159158
$category->setStoreId(1);
@@ -783,14 +782,10 @@ public function testSaveDesign(): void
783782
$category->load(2);
784783
$this->assertEquals('2columns-left', $category->getData('page_layout'));
785784
$this->assertEmpty($category->getData('custom_layout_update_file'));
786-
$this->assertEquals('Custom Description', $category->getData('description'));
785+
$this->assertEquals('test', $category->getData('description'));
787786
//No new error messages
788-
$sessionErrorMessages = [
789-
'Not allowed to edit the category\'s design attributes',
790-
'Not allowed to edit the category\'s design attributes'
791-
];
792787
$this->assertSessionMessages(
793-
self::equalTo($sessionErrorMessages),
788+
self::equalTo($sessionMessages),
794789
MessageInterface::TYPE_ERROR
795790
);
796791
}

0 commit comments

Comments
 (0)