@@ -132,12 +132,12 @@ public function testDefaultValueForCategoryUrlPath(): void
132
132
];
133
133
$ this ->getRequest ()->setPostValue ($ postData );
134
134
$ this ->dispatch ('backend/catalog/category/save ' );
135
- $ category = $ this ->categoryRepository ->get ($ categoryId );
136
- $ this ->assertEquals ($ defaultUrlPath , $ category ->getData ('url_path ' ));
137
135
$ this ->assertSessionMessages (
138
136
$ this ->equalTo ([(string )__ ('You saved the category. ' )]),
139
137
MessageInterface::TYPE_SUCCESS
140
138
);
139
+ $ category = $ this ->categoryRepository ->get ($ categoryId );
140
+ $ this ->assertEquals ($ defaultUrlPath , $ category ->getData ('url_path ' ));
141
141
}
142
142
143
143
/**
@@ -488,11 +488,11 @@ public function testSaveCategoryWithProductPosition(array $postData): void
488
488
$ this ->getRequest ()->setParam ('id ' , 96377 );
489
489
$ this ->getRequest ()->setPostValue ($ postData );
490
490
$ this ->dispatch ('backend/catalog/category/save ' );
491
- $ newCategoryProductsCount = $ this ->getCategoryProductsCount ();
492
491
$ this ->assertSessionMessages (
493
492
$ this ->equalTo ([(string )__ ('You saved the category. ' )]),
494
493
MessageInterface::TYPE_SUCCESS
495
494
);
495
+ $ newCategoryProductsCount = $ this ->getCategoryProductsCount ();
496
496
$ this ->assertEquals (
497
497
$ oldCategoryProductsCount ,
498
498
$ newCategoryProductsCount ,
0 commit comments