Skip to content

Commit 310a1f2

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-92177: Wrong behavior of the list action
1 parent 898318a commit 310a1f2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml/Index/MassAssignGroupTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,22 @@ public function testLargeGroupMassAssignGroupAction()
111111
}
112112
}
113113

114+
/** @var \Magento\Framework\Data\Form\FormKey $formKey */
115+
$formKey = $this->_objectManager->get(
116+
\Magento\Framework\Data\Form\FormKey::class
117+
);
118+
114119
$params = [
115120
'group' => 0,
116121
'namespace' => 'customer_listing',
117122
'selected' => $ids,
123+
'form_key' => $formKey->getFormKey()
118124
];
119125

120-
$this->getRequest()->setParams($params);
126+
$this->getRequest()
127+
->setParams($params)
128+
->setMethod('POST');
129+
121130
$this->dispatch('backend/customer/index/massAssignGroup');
122131
$this->assertSessionMessages(
123132
self::equalTo(['A total of 5 record(s) were updated.']),

0 commit comments

Comments
 (0)