|
@@ 84-97 (lines=14) @@
|
| 81 |
|
$this->assertTrue($result); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
public function testSendRequestTrueNoBilling() |
| 85 |
|
{ |
| 86 |
|
$address = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock(); |
| 87 |
|
|
| 88 |
|
$this->shopHelper->expects($this->any()) |
| 89 |
|
->method('getConfigParam') |
| 90 |
|
->willReturnMap([ |
| 91 |
|
['enabled', 'address_check', 'payone_protect', null, true], |
| 92 |
|
['check_billing', 'address_check', 'payone_protect', null, 'NO'] |
| 93 |
|
]); |
| 94 |
|
|
| 95 |
|
$result = $this->classToTest->sendRequest($address, true); |
| 96 |
|
$this->assertTrue($result); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
public function testSendRequestTrueNoShipping() |
| 100 |
|
{ |
|
@@ 99-112 (lines=14) @@
|
| 96 |
|
$this->assertTrue($result); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
public function testSendRequestTrueNoShipping() |
| 100 |
|
{ |
| 101 |
|
$address = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock(); |
| 102 |
|
|
| 103 |
|
$this->shopHelper->expects($this->any()) |
| 104 |
|
->method('getConfigParam') |
| 105 |
|
->willReturnMap([ |
| 106 |
|
['enabled', 'address_check', 'payone_protect', null, true], |
| 107 |
|
['check_shipping', 'address_check', 'payone_protect', null, 'NO'] |
| 108 |
|
]); |
| 109 |
|
|
| 110 |
|
$result = $this->classToTest->sendRequest($address, false); |
| 111 |
|
$this->assertTrue($result); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
public function testSendRequestInvalidTypePE() |
| 115 |
|
{ |