| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testGetCheckoutLink() |
||
| 21 | { |
||
| 22 | $this->sandbox_mock = self::MOCK; |
||
| 23 | $this->mockHttpSession($this->body_order); |
||
| 24 | $order = $this->createOrder()->create(); |
||
| 25 | |||
| 26 | $this->assertEquals('https://checkout-sandbox.moip.com.br/creditcard/ORD-HG479ZEIB7LV', $order->getLinks()->getCheckout('payCreditCard')); |
||
| 27 | } |
||
| 28 | |||
| 37 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: