Skip to content

Commit de1b670

Browse files
committed
MAGETWO-70705: [GitHub] Installation error in Tax module #10138
1 parent 44d8b81 commit de1b670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Tax/Test/Unit/Model/Calculation/RateRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,13 @@ public function testValidateWithWrongRate()
436436
$rateTitles = ['Label 1', 'Label 2'];
437437

438438
$countryCode = 'US';
439-
$countryMock = $this->getMock(\Magento\Directory\Model\Country::class, [], [], '', false);
439+
$countryMock = $this->createMock(\Magento\Directory\Model\Country::class);
440440
$countryMock->expects($this->any())->method('getId')->will($this->returnValue(1));
441441
$countryMock->expects($this->any())->method('loadByCode')->with($countryCode)->will($this->returnSelf());
442442
$this->countryFactoryMock->expects($this->once())->method('create')->will($this->returnValue($countryMock));
443443

444444
$regionId = 2;
445-
$regionMock = $this->getMock(\Magento\Directory\Model\Region::class, [], [], '', false);
445+
$regionMock = $this->createMock(\Magento\Directory\Model\Region::class);
446446
$regionMock->expects($this->any())->method('getId')->will($this->returnValue($regionId));
447447
$regionMock->expects($this->any())->method('load')->with($regionId)->will($this->returnSelf());
448448
$this->regionFactoryMock->expects($this->once())->method('create')->will($this->returnValue($regionMock));

0 commit comments

Comments
 (0)