File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,9 @@ protected function setUp(): void
48
48
public function testUpdateCategoryForDefaultStoreView (array $ postData ): void
49
49
{
50
50
$ storeId = (int )$ this ->storeManager ->getStore ('default ' )->getId ();
51
- $ postData = array_merge ($ postData , ['store_id ' => $ storeId ]);
52
51
$ responseData = $ this ->performSaveCategoryRequest ($ postData );
53
52
$ this ->assertRequestIsSuccessfullyPerformed ($ responseData );
54
- $ category = $ this ->categoryRepository ->get ($ postData ['entity_id ' ], $ postData [ ' store_id ' ] );
53
+ $ category = $ this ->categoryRepository ->get ($ postData ['entity_id ' ], $ storeId );
55
54
unset($ postData ['use_default ' ]);
56
55
unset($ postData ['use_config ' ]);
57
56
foreach ($ postData as $ key => $ value ) {
Original file line number Diff line number Diff line change @@ -153,7 +153,6 @@ public function testDefaultValueForCategoryUrlPath(): void
153
153
$ categoryId = 3 ;
154
154
$ category = $ this ->categoryRepository ->get ($ categoryId );
155
155
$ newUrlPath = 'test_url_path ' ;
156
- $ defaultUrlPath = $ category ->getData ('url_path ' );
157
156
158
157
// update url_path and check it
159
158
$ category ->setStoreId (1 );
@@ -783,14 +782,10 @@ public function testSaveDesign(): void
783
782
$ category ->load (2 );
784
783
$ this ->assertEquals ('2columns-left ' , $ category ->getData ('page_layout ' ));
785
784
$ this ->assertEmpty ($ category ->getData ('custom_layout_update_file ' ));
786
- $ this ->assertEquals ('Custom Description ' , $ category ->getData ('description ' ));
785
+ $ this ->assertEquals ('test ' , $ category ->getData ('description ' ));
787
786
//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
- ];
792
787
$ this ->assertSessionMessages (
793
- self ::equalTo ($ sessionErrorMessages ),
788
+ self ::equalTo ($ sessionMessages ),
794
789
MessageInterface::TYPE_ERROR
795
790
);
796
791
}
You can’t perform that action at this time.
0 commit comments