Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | public function test_check($source, $type, $output) |
||
22 | { |
||
23 | $mock = \Mockery::mock(AssetSource::class)->shouldAllowMockingProtectedMethods()->makePartial(); |
||
24 | $mock->shouldReceive('transformSourceWithAsset')->andReturnUsing(function ($argument) { |
||
25 | return '/assets'.$argument; |
||
26 | }); |
||
27 | $source = $mock->buildSource($source, $type); |
||
28 | self::assertSame($output, $source); |
||
29 | } |
||
42 | } |