Skip to content

Commit 92d9d67

Browse files
author
Michael Logvin
committed
MAGETWO-37614: Stabilize story
1 parent eac4a7c commit 92d9d67

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

app/code/Magento/Quote/Test/Unit/Model/Observer/Frontend/Quote/Address/CollectTotalsTest.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,6 @@ protected function setUp()
192192
);
193193
}
194194

195-
public function testDispatchWithDisableAutoGroupChange()
196-
{
197-
$this->setAttributeCodeValue('disable_auto_group_change');
198-
$this->model->dispatch($this->observerMock);
199-
}
200-
201195
public function testDispatchWithDisableVatValidator()
202196
{
203197
$this->vatValidatorMock->expects($this->once())
@@ -217,7 +211,6 @@ public function testDispatchWithCustomerCountryNotInEUAndNotLoggedCustomerInGrou
217211
->will($this->returnValue($this->groupInterfaceMock));
218212
$this->groupInterfaceMock->expects($this->once())
219213
->method('getId')->will($this->returnValue(0));
220-
$this->setAttributeCodeValue(false);
221214
$this->vatValidatorMock->expects($this->once())
222215
->method('isEnabled')
223216
->with($this->quoteAddressMock, $this->storeId)
@@ -254,7 +247,6 @@ public function testDispatchWithCustomerCountryNotInEUAndNotLoggedCustomerInGrou
254247

255248
public function testDispatchWithDefaultCustomerGroupId()
256249
{
257-
$this->setAttributeCodeValue(false);
258250
$this->vatValidatorMock->expects($this->once())
259251
->method('isEnabled')
260252
->with($this->quoteAddressMock, $this->storeId)
@@ -296,7 +288,6 @@ public function testDispatchWithDefaultCustomerGroupId()
296288

297289
public function testDispatchWithCustomerCountryInEU()
298290
{
299-
$this->setAttributeCodeValue(false);
300291
$this->vatValidatorMock->expects($this->once())
301292
->method('isEnabled')
302293
->with($this->quoteAddressMock, $this->storeId)
@@ -345,16 +336,4 @@ public function testDispatchWithCustomerCountryInEU()
345336
->willReturn($this->customerMock);
346337
$this->model->dispatch($this->observerMock);
347338
}
348-
349-
protected function setAttributeCodeValue($value)
350-
{
351-
$attributeInterface = $this->getMockForAbstractClass('Magento\Framework\Api\AttributeInterface', [], '', false);
352-
$this->customerMock->expects($this->any())
353-
->method('getCustomAttribute')
354-
->with('disable_auto_group_change')
355-
->willReturn($attributeInterface);
356-
$attributeInterface->expects($this->once())
357-
->method('getValue')
358-
->willReturn($value);
359-
}
360339
}

0 commit comments

Comments
 (0)