File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -161,26 +161,16 @@ public function testSaveActionExistingGroup()
161
161
);
162
162
}
163
163
164
- /**
165
- * @magentoDataFixture Magento/Customer/_files/customer_group.php
166
- */
167
- public function testSaveActionExistingGroupWithEmptyGroupCode ()
164
+ public function testSaveActionCreateNewGroupWithoutCode ()
168
165
{
169
- $ groupId = $ this ->findGroupIdWithCode (self ::CUSTOMER_GROUP_CODE );
170
- $ originalCode = $ this ->groupRepository ->getById ($ groupId )->getCode ();
171
-
172
166
$ this ->getRequest ()->setParam ('tax_class ' , self ::TAX_CLASS_ID );
173
- $ this ->getRequest ()->setParam ('id ' , $ groupId );
174
- $ this ->getRequest ()->setParam ('code ' , '' );
175
167
176
168
$ this ->dispatch ('backend/customer/group/save ' );
177
169
178
170
$ this ->assertSessionMessages (
179
171
$ this ->equalTo (['code is a required field. ' ]),
180
172
MessageInterface::TYPE_ERROR
181
173
);
182
- $ this ->assertSessionMessages ($ this ->isEmpty (), MessageInterface::TYPE_SUCCESS );
183
- $ this ->assertEquals ($ originalCode , $ this ->groupRepository ->getById ($ groupId )->getCode ());
184
174
}
185
175
186
176
public function testSaveActionForwardNewCreateNewGroup ()
You can’t perform that action at this time.
0 commit comments