@@ 20-29 (lines=10) @@ | ||
17 | } |
|
18 | ||
19 | /** @test */ |
|
20 | public function it_should_return_empty_collection_if_no_assets() |
|
21 | { |
|
22 | $cssResult = $this->assetManager->allCss(); |
|
23 | $jsResult = $this->assetManager->allJs(); |
|
24 | ||
25 | $this->assertInstanceOf('Illuminate\Support\Collection', $cssResult); |
|
26 | $this->assertEquals(0, $cssResult->count()); |
|
27 | $this->assertInstanceOf('Illuminate\Support\Collection', $jsResult); |
|
28 | $this->assertEquals(0, $jsResult->count()); |
|
29 | } |
|
30 | ||
31 | /** @test */ |
|
32 | public function it_should_add_one_javascript_asset() |
@@ 29-38 (lines=10) @@ | ||
26 | } |
|
27 | ||
28 | /** @test */ |
|
29 | public function it_should_return_empty_collection_if_no_assets() |
|
30 | { |
|
31 | $cssResult = $this->assetPipeline->allCss(); |
|
32 | $jsResult = $this->assetPipeline->allJs(); |
|
33 | ||
34 | $this->assertInstanceOf('Illuminate\Support\Collection', $cssResult); |
|
35 | $this->assertEquals(0, $cssResult->count()); |
|
36 | $this->assertInstanceOf('Illuminate\Support\Collection', $jsResult); |
|
37 | $this->assertEquals(0, $jsResult->count()); |
|
38 | } |
|
39 | ||
40 | /** @test */ |
|
41 | public function it_should_require_add_js_asset() |