| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testEasycreditMethodIsLeftAfterFilter(): void |
||
| 23 | { |
||
| 24 | $facade = $this->prepareFacade(); |
||
| 25 | |||
| 26 | $quoteTransfer = $this->prepareQuoteTransfer(); |
||
| 27 | $paymentMethodsTransfer = $this->preparePaymentMethodsTransfer(); |
||
| 28 | |||
| 29 | $quoteTransfer->setTotals($this->prepareTotalsTransfer(static::TOTAL_VALUE_FOR_FILTERED_EASYCREDIT_PAYMENT_METHOD)); |
||
| 30 | |||
| 31 | $paymentMethodsTransfer = $facade->filterPaymentMethods($paymentMethodsTransfer, $quoteTransfer); |
||
| 32 | |||
| 33 | $this->assertEquals(count($paymentMethodsTransfer->getMethods()), 1); |
||
| 34 | } |
||
| 53 |