Skip to content

Commit 0a49f2d

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-53194' into BUGS
2 parents 10120fc + f8b2344 commit 0a49f2d

File tree

1 file changed

+1
-11
lines changed
  • dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,26 +161,16 @@ public function testSaveActionExistingGroup()
161161
);
162162
}
163163

164-
/**
165-
* @magentoDataFixture Magento/Customer/_files/customer_group.php
166-
*/
167-
public function testSaveActionExistingGroupWithEmptyGroupCode()
164+
public function testSaveActionCreateNewGroupWithoutCode()
168165
{
169-
$groupId = $this->findGroupIdWithCode(self::CUSTOMER_GROUP_CODE);
170-
$originalCode = $this->groupRepository->getById($groupId)->getCode();
171-
172166
$this->getRequest()->setParam('tax_class', self::TAX_CLASS_ID);
173-
$this->getRequest()->setParam('id', $groupId);
174-
$this->getRequest()->setParam('code', '');
175167

176168
$this->dispatch('backend/customer/group/save');
177169

178170
$this->assertSessionMessages(
179171
$this->equalTo(['code is a required field.']),
180172
MessageInterface::TYPE_ERROR
181173
);
182-
$this->assertSessionMessages($this->isEmpty(), MessageInterface::TYPE_SUCCESS);
183-
$this->assertEquals($originalCode, $this->groupRepository->getById($groupId)->getCode());
184174
}
185175

186176
public function testSaveActionForwardNewCreateNewGroup()

0 commit comments

Comments
 (0)