File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments