Skip to content

Commit f8b2344

Browse files
author
Oleksandr Karpenko
committed
MAGETWO-53194: Impossible change Tax class for NOT LOGGED IN customer group
1 parent b3789a4 commit f8b2344

File tree

1 file changed

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

1 file changed

+3
-4
lines changed

dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml/GroupTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,15 @@ public function testSaveActionExistingGroup()
161161
);
162162
}
163163

164-
public function testSaveActionCreateNewGroup()
164+
public function testSaveActionCreateNewGroupWithoutCode()
165165
{
166166
$this->getRequest()->setParam('tax_class', self::TAX_CLASS_ID);
167-
$this->getRequest()->setParam('code', 'group_code');
168167

169168
$this->dispatch('backend/customer/group/save');
170169

171170
$this->assertSessionMessages(
172-
$this->equalTo(['You saved the customer group.']),
173-
MessageInterface::TYPE_SUCCESS
171+
$this->equalTo(['code is a required field.']),
172+
MessageInterface::TYPE_ERROR
174173
);
175174
}
176175

0 commit comments

Comments
 (0)