| @@ 112-125 (lines=14) @@ | ||
| 109 | $this->assertEquals($expected, $result); |
|
| 110 | } |
|
| 111 | ||
| 112 | public function testGetConfigParamNotEmpty() |
|
| 113 | { |
|
| 114 | $expected = [['status' => 'appointed', 'url' => 'http://forward.to']]; |
|
| 115 | ||
| 116 | $this->scopeConfig->expects($this->any()) |
|
| 117 | ->method('getValue') |
|
| 118 | ->willReturnMap( |
|
| 119 | [ |
|
| 120 | ['payone_misc/forwarding/config', ScopeInterface::SCOPE_STORE, null, $this->toolkitHelper->serialize($expected)] |
|
| 121 | ] |
|
| 122 | ); |
|
| 123 | $result = $this->config->getForwardingUrls(); |
|
| 124 | $this->assertEquals($expected, $result); |
|
| 125 | } |
|
| 126 | } |
|
| 127 | ||
| @@ 115-128 (lines=14) @@ | ||
| 112 | $this->assertEquals($expected, $result); |
|
| 113 | } |
|
| 114 | ||
| 115 | public function testGetDebitSepaCountries() |
|
| 116 | { |
|
| 117 | $this->coreCountry->method('loadByCode')->willReturn($this->coreCountry); |
|
| 118 | $this->scopeConfig->expects($this->any()) |
|
| 119 | ->method('getValue') |
|
| 120 | ->willReturnMap( |
|
| 121 | [ |
|
| 122 | ['payone_payment/payone_debit/sepa_country', ScopeInterface::SCOPE_STORE, null, 'DE'] |
|
| 123 | ] |
|
| 124 | ); |
|
| 125 | $result = $this->country->getDebitSepaCountries(); |
|
| 126 | $expected = [['id' => 'DE', 'title' => 'Deutschland']]; |
|
| 127 | $this->assertEquals($expected, $result); |
|
| 128 | } |
|
| 129 | ||
| 130 | public function testIsStateNeeded() |
|
| 131 | { |
|