Skip to content

Commit ea96a2b

Browse files
committed
MC-15297: Selecting "Conditions Combination" For Product List Condition Will Throw 500 Error & Redirect User To Broken Page
Set request method to POST in relevant integration tests that are now restricted to POST only
1 parent f06ac24 commit ea96a2b

File tree

1 file changed

+4
-2
lines changed
  • dev/tests/integration/testsuite/Magento/PageBuilder/Controller/Adminhtml/Form/Element/ProductConditions

1 file changed

+4
-2
lines changed

dev/tests/integration/testsuite/Magento/PageBuilder/Controller/Adminhtml/Form/Element/ProductConditions/ChildTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public function testFormLoadsEmptyFormUsingParams()
2020
->setPostValue([
2121
'type' => 'Magento\CatalogWidget\Model\Rule\Condition\Product|category_ids',
2222
'id' => '1--3',
23-
]);
23+
])
24+
->setMethod($this->getRequest()::METHOD_POST);
2425

2526
$this->dispatch('backend/pagebuilder/form/element_productconditions_child');
2627
$responseBody = $this->getResponse()->getBody();
@@ -45,7 +46,8 @@ public function testFormLoadsCustomPrefix()
4546
->setPostValue([
4647
'type' => 'Magento\CatalogWidget\Model\Rule\Condition\Product|category_ids',
4748
'id' => '1--3',
48-
]);
49+
])
50+
->setMethod($this->getRequest()::METHOD_POST);
4951

5052
$this->dispatch('backend/pagebuilder/form/element_productconditions_child');
5153
$responseBody = $this->getResponse()->getBody();

0 commit comments

Comments
 (0)