File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Category/Save Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,10 @@ public function testTryToCreateCategoryWithEmptyValues(): void
103
103
'return_session_messages_only ' => false ,
104
104
]);
105
105
$ this ->dispatch ('backend/catalog/category/save ' );
106
- $ message = 'The "Available Product Listing Sort By" attribute is required. Enter and try again. ' ;
107
- $ this ->assertSessionMessages ($ this ->equalTo ([(string )__ ($ message )]), MessageInterface::TYPE_ERROR );
106
+ $ message = (string )__ (
107
+ 'The "%1" attribute is required. Enter and try again. ' ,
108
+ 'Available Product Listing Sort By '
109
+ );
110
+ $ this ->assertSessionMessages ($ this ->containsEqual ($ message ), MessageInterface::TYPE_ERROR );
108
111
}
109
112
}
You can’t perform that action at this time.
0 commit comments