|
@@ 147-160 (lines=14) @@
|
| 144 |
|
$this->assertFalse($result); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
public function testCanShowPaymentHintText() |
| 148 |
|
{ |
| 149 |
|
$this->scopeConfig->expects($this->any()) |
| 150 |
|
->method('getValue') |
| 151 |
|
->willReturnMap( |
| 152 |
|
[ |
| 153 |
|
['payone_protect/creditrating/enabled', ScopeInterface::SCOPE_STORE, null, 1], |
| 154 |
|
['payone_protect/creditrating/payment_hint_enabled', ScopeInterface::SCOPE_STORE, null, 1], |
| 155 |
|
['payone_protect/creditrating/integration_event', ScopeInterface::SCOPE_STORE, null, 'after_payment'] |
| 156 |
|
] |
| 157 |
|
); |
| 158 |
|
$result = $this->consumerscore->canShowPaymentHintText(); |
| 159 |
|
$this->assertTrue($result); |
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
public function testMustNotShowPaymentHintText() |
| 163 |
|
{ |
|
@@ 162-175 (lines=14) @@
|
| 159 |
|
$this->assertTrue($result); |
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
public function testMustNotShowPaymentHintText() |
| 163 |
|
{ |
| 164 |
|
$this->scopeConfig->expects($this->any()) |
| 165 |
|
->method('getValue') |
| 166 |
|
->willReturnMap( |
| 167 |
|
[ |
| 168 |
|
['payone_protect/creditrating/enabled', ScopeInterface::SCOPE_STORE, null, 1], |
| 169 |
|
['payone_protect/creditrating/payment_hint_enabled', ScopeInterface::SCOPE_STORE, null, 1], |
| 170 |
|
['payone_protect/creditrating/integration_event', ScopeInterface::SCOPE_STORE, null, 'before_payment'] |
| 171 |
|
] |
| 172 |
|
); |
| 173 |
|
$result = $this->consumerscore->canShowPaymentHintText(); |
| 174 |
|
$this->assertFalse($result); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
public function testCanShowAgreementMessage() |
| 178 |
|
{ |
|
@@ 177-190 (lines=14) @@
|
| 174 |
|
$this->assertFalse($result); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
public function testCanShowAgreementMessage() |
| 178 |
|
{ |
| 179 |
|
$this->scopeConfig->expects($this->any()) |
| 180 |
|
->method('getValue') |
| 181 |
|
->willReturnMap( |
| 182 |
|
[ |
| 183 |
|
['payone_protect/creditrating/enabled', ScopeInterface::SCOPE_STORE, null, 1], |
| 184 |
|
['payone_protect/creditrating/agreement_enabled', ScopeInterface::SCOPE_STORE, null, 1], |
| 185 |
|
['payone_protect/creditrating/integration_event', ScopeInterface::SCOPE_STORE, null, 'after_payment'] |
| 186 |
|
] |
| 187 |
|
); |
| 188 |
|
$result = $this->consumerscore->canShowAgreementMessage(); |
| 189 |
|
$this->assertTrue($result); |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
public function testMustNotShowAgreementMessage() |
| 193 |
|
{ |
|
@@ 192-205 (lines=14) @@
|
| 189 |
|
$this->assertTrue($result); |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
public function testMustNotShowAgreementMessage() |
| 193 |
|
{ |
| 194 |
|
$this->scopeConfig->expects($this->any()) |
| 195 |
|
->method('getValue') |
| 196 |
|
->willReturnMap( |
| 197 |
|
[ |
| 198 |
|
['payone_protect/creditrating/enabled', ScopeInterface::SCOPE_STORE, null, 1], |
| 199 |
|
['payone_protect/creditrating/agreement_enabled', ScopeInterface::SCOPE_STORE, null, 1], |
| 200 |
|
['payone_protect/creditrating/integration_event', ScopeInterface::SCOPE_STORE, null, 'before_payment'] |
| 201 |
|
] |
| 202 |
|
); |
| 203 |
|
$result = $this->consumerscore->canShowAgreementMessage(); |
| 204 |
|
$this->assertFalse($result); |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
/** |
| 208 |
|
* @return array |