Skip to content

Commit 2385a49

Browse files
committed
Test for file info fields in Manifest test
1 parent 5392d37 commit 2385a49

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Pipe/Test/ManifestTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ function testManifestDumpsAssets()
2626

2727
$this->assertEquals($digestName, $json["assets"]["asset1.js"]);
2828

29-
$this->assertNotEmpty($json["files"][$digestName]);
29+
$fileInfo = $json['files'][$digestName];
30+
31+
$this->assertArrayHasKey('size', $fileInfo);
32+
$this->assertArrayHasKey('logical_path', $fileInfo);
33+
$this->assertArrayHasKey('content_type', $fileInfo);
34+
$this->assertArrayHasKey('digest', $fileInfo);
3035

3136
$this->assertTrue($dir->hasChild('manifest.json'));
3237
$this->assertTrue($dir->hasChild($digestName));

0 commit comments

Comments
 (0)