Fix template test

This commit is contained in:
Lukas Reschke 2016-08-15 17:19:50 +02:00
parent 18388a01f5
commit 349f5e4a60
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class TemplatesTest extends \Test\TestCase {
public function test404() { public function test404() {
$template = \OC::$SERVERROOT . '/core/templates/404.php'; $template = \OC::$SERVERROOT . '/core/templates/404.php';
$href = \OC::$server->getURLGenerator()->linkTo('', 'index.php'); $href = \OC::$server->getURLGenerator()->linkTo('', 'index.php');
$expectedHtml = "<ul><li class='error'>\n\t\t\tFile not found<br><p class='hint'>The specified document has not been found on the server.</p>\n<p class='hint'><a href='$href'>You can click here to return to ownCloud.</a></p>\n\t\t</li></ul>"; $expectedHtml = "<ul><li class='error'>\n\t\t\tFile not found<br><p class='hint'>The specified document has not been found on the server.</p>\n<p class='hint'><a href='$href'>You can click here to return to Nextcloud.</a></p>\n\t\t</li></ul>";
$this->assertTemplate($expectedHtml, $template); $this->assertTemplate($expectedHtml, $template);
} }