Skip to content

Commit ca6d055

Browse files
committed
MC-20697: Admin: Create a category
1 parent 1925de8 commit ca6d055

File tree

1 file changed

+3
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml

1 file changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/CategoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ public function testDefaultValueForCategoryUrlPath(): void
132132
];
133133
$this->getRequest()->setPostValue($postData);
134134
$this->dispatch('backend/catalog/category/save');
135-
$category = $this->categoryRepository->get($categoryId);
136-
$this->assertEquals($defaultUrlPath, $category->getData('url_path'));
137135
$this->assertSessionMessages(
138136
$this->equalTo([(string)__('You saved the category.')]),
139137
MessageInterface::TYPE_SUCCESS
140138
);
139+
$category = $this->categoryRepository->get($categoryId);
140+
$this->assertEquals($defaultUrlPath, $category->getData('url_path'));
141141
}
142142

143143
/**
@@ -488,11 +488,11 @@ public function testSaveCategoryWithProductPosition(array $postData): void
488488
$this->getRequest()->setParam('id', 96377);
489489
$this->getRequest()->setPostValue($postData);
490490
$this->dispatch('backend/catalog/category/save');
491-
$newCategoryProductsCount = $this->getCategoryProductsCount();
492491
$this->assertSessionMessages(
493492
$this->equalTo([(string)__('You saved the category.')]),
494493
MessageInterface::TYPE_SUCCESS
495494
);
495+
$newCategoryProductsCount = $this->getCategoryProductsCount();
496496
$this->assertEquals(
497497
$oldCategoryProductsCount,
498498
$newCategoryProductsCount,

0 commit comments

Comments
 (0)