Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function test_getBuilds_default() |
||
16 | { |
||
17 | EntrypointLookupFactory::setConfig([ |
||
18 | 'assets' => [ |
||
19 | 'output_path' => TEST_FIXTURE_PATH.'/build/', |
||
20 | ], |
||
21 | ]); |
||
22 | |||
23 | $builds = EntrypointLookupFactory::getBuilds(); |
||
24 | self::assertIsArray($builds); |
||
25 | self::assertCount(1, $builds); |
||
26 | self::assertArrayHasKey('_default', $builds); |
||
27 | |||
28 | $entrypoint = $builds['_default']; |
||
29 | self::assertInstanceOf(EntrypointLookup::class, $entrypoint); |
||
30 | |||
31 | $jsFiles = $entrypoint->getJavaScriptFiles('my_entry'); |
||
32 | self::assertSame(['build/file1.js', 'build/file2.js'], $jsFiles); |
||
33 | } |
||
35 |