tests/ApplicationTest.php 1 location
|
@@ 22-28 (lines=7) @@
|
| 19 |
|
$this->assertSame($this->app, $container->get(Application::class)); |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
public function testAssets() |
| 23 |
|
{ |
| 24 |
|
$assets = $this->app->dispatch('module.assets'); |
| 25 |
|
$this->assertArrayHasKey('hash', $assets); |
| 26 |
|
$this->assertArrayHasKey('js', $assets); |
| 27 |
|
$this->assertArrayHasKey('test.js', $assets['js']); |
| 28 |
|
} |
| 29 |
|
} |
| 30 |
|
|
tests/MetaTest.php 1 location
|
@@ 11-18 (lines=8) @@
|
| 8 |
|
|
| 9 |
|
class MetaTest extends TestSuite |
| 10 |
|
{ |
| 11 |
|
public function test() |
| 12 |
|
{ |
| 13 |
|
$meta = $this->app->dispatch('module.assets'); |
| 14 |
|
|
| 15 |
|
$this->assertArrayHasKey('js', $meta); |
| 16 |
|
$this->assertArrayHasKey('test.js', $meta['js']); |
| 17 |
|
$this->assertArrayHasKey('file.styl', $meta['styl']); |
| 18 |
|
} |
| 19 |
|
} |
| 20 |
|
|