Skip to content

Commit

Permalink
Test asset files do not make it into the manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 5, 2015
1 parent a9500e2 commit c6678b2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/Unit/ClientSide/PageManifest.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,26 @@ public function testExpands() {
}
}

public function testAssetFilesNotInManifest() {
$faviconFilepath = implode("/", [
Path::get(Path::ASSET),
"icon.png",
]);

$html = $this->html;
$html = str_replace(
"<%SCRIPT_STYLE_LIST%>",
"<link rel='proprietary-icon' href='/asset/icon.png' />",
$html
);
$document = new Document($html);
$manifest = new PageManifest(
$document->head, $this->request, $this->response);

$pathDetails = $manifest->generatePathDetails();

$this->assertCount(0, $pathDetails,
'should not have any path details, as asset element should be removed');
}

}#

0 comments on commit c6678b2

Please sign in to comment.