|
@@ 73-82 (lines=10) @@
|
| 70 |
|
]); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
public function testCheckAddressFalse() |
| 74 |
|
{ |
| 75 |
|
$this->addresscheck->method('isCheckNeededForQuote')->willReturn(false); |
| 76 |
|
|
| 77 |
|
$addressData = $this->getMockBuilder(AddressInterface::class)->disableOriginalConstructor()->getMock(); |
| 78 |
|
|
| 79 |
|
$result = $this->classToTest->checkAddress($addressData, false, false, 100); |
| 80 |
|
$result = $result->__toArray(); |
| 81 |
|
$this->assertFalse($result['success']); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
public function testCheckAddressTrue() |
| 85 |
|
{ |
|
@@ 84-94 (lines=11) @@
|
| 81 |
|
$this->assertFalse($result['success']); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
public function testCheckAddressTrue() |
| 85 |
|
{ |
| 86 |
|
$this->addresscheck->method('isCheckNeededForQuote')->willReturn(true); |
| 87 |
|
$this->addresscheck->method('getResponse')->willReturn(true); |
| 88 |
|
|
| 89 |
|
$addressData = $this->getMockBuilder(AddressInterface::class)->disableOriginalConstructor()->getMock(); |
| 90 |
|
|
| 91 |
|
$result = $this->classToTest->checkAddress($addressData, false, false, 100); |
| 92 |
|
$result = $result->__toArray(); |
| 93 |
|
$this->assertTrue($result['success']); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
public function testCheckAddressInvalid() |
| 97 |
|
{ |