Skip to content

Commit

Permalink
Fix pagedispatcher tests
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Sep 3, 2014
1 parent f3e800d commit 2577e7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/Acceptance/PageLogic/src/Page/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Index extends \Gt\Page\Logic {

public function go() {
// This source is hidden from Page View.
// This comment is searched for to ensure it isn't visible in the response.
$h1 = $this->dom->getElementsByTagName("h1")->item(0);
$h1->nodeValue .= " EDITED FROM PAGE LOGIC";
}
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/Dispatcher/PageDispatcher.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function testLoadSourceFromPath($uri) {
$uri .= "index";
}
else {
file_put_contents($filePath, "dummy data");
file_put_contents($filePath . ".html", "dummy data");
}

$uriFile = basename($uri);
Expand Down Expand Up @@ -214,7 +214,7 @@ public function testLoadSourceFromPathWithHeaderFooter($uri) {
else {
file_put_contents(dirname($filePath) . "/_header.html", "header data");
file_put_contents(dirname($filePath) . "/_footer.html", "footer data");
file_put_contents($filePath, "dummy data");
file_put_contents($filePath . ".html", "dummy data");
}

$uriFile = basename($uri);
Expand Down

0 comments on commit 2577e7b

Please sign in to comment.