Skip to content

Commit ef72911

Browse files
committed
36394: Fix integration tests
1 parent 3f3518b commit ef72911

File tree

1 file changed

+7
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function testDefaultValueForCategoryUrlPath(): void
178178
MessageInterface::TYPE_SUCCESS
179179
);
180180
$category = $this->categoryRepository->get($categoryId);
181-
$this->assertEquals($defaultUrlPath, $category->getData('url_key'));
181+
$this->assertEquals($newUrlPath, $category->getData('url_key'));
182182
}
183183

184184
/**
@@ -783,10 +783,14 @@ public function testSaveDesign(): void
783783
$category->load(2);
784784
$this->assertEquals('2columns-left', $category->getData('page_layout'));
785785
$this->assertEmpty($category->getData('custom_layout_update_file'));
786-
$this->assertEquals('test', $category->getData('description'));
786+
$this->assertEquals('Custom Description', $category->getData('description'));
787787
//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+
];
788792
$this->assertSessionMessages(
789-
self::equalTo($sessionMessages),
793+
self::equalTo($sessionErrorMessages),
790794
MessageInterface::TYPE_ERROR
791795
);
792796
}

0 commit comments

Comments
 (0)