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
178
178
MessageInterface::TYPE_SUCCESS
179
179
);
180
180
$ category = $ this ->categoryRepository ->get ($ categoryId );
181
- $ this ->assertEquals ($ defaultUrlPath , $ category ->getData ('url_key ' ));
181
+ $ this ->assertEquals ($ newUrlPath , $ category ->getData ('url_key ' ));
182
182
}
183
183
184
184
/**
@@ -783,10 +783,14 @@ public function testSaveDesign(): void
783
783
$ category ->load (2 );
784
784
$ this ->assertEquals ('2columns-left ' , $ category ->getData ('page_layout ' ));
785
785
$ this ->assertEmpty ($ category ->getData ('custom_layout_update_file ' ));
786
- $ this ->assertEquals ('test ' , $ category ->getData ('description ' ));
786
+ $ this ->assertEquals ('Custom Description ' , $ category ->getData ('description ' ));
787
787
//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
+ ];
788
792
$ this ->assertSessionMessages (
789
- self ::equalTo ($ sessionMessages ),
793
+ self ::equalTo ($ sessionErrorMessages ),
790
794
MessageInterface::TYPE_ERROR
791
795
);
792
796
}
You can’t perform that action at this time.
0 commit comments