Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function test_adminPurchasesSessionsList_empty() |
||
26 | { |
||
27 | $purchase = \Mockery::mock(Purchase::class)->makePartial(); |
||
28 | $purchase->shouldReceive('getPurchasesSessions')->once()->andReturn([]); |
||
29 | |||
30 | ModelLocator::set(PurchaseSessions::class, PurchaseSessions::instance()); |
||
31 | |||
32 | $return = PaymentsAssets::adminPurchasesSessionsList($purchase); |
||
33 | self::assertStringContainsString('dnx', $return); |
||
34 | } |
||
36 |