summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-07-31 22:14:52 +0200
committerGitHub <noreply@github.com>2017-07-31 22:14:52 +0200
commitfa2f122e09781467a12936626470b626e3d062a8 (patch)
tree457b165a793497d919979d8d7a36a41d454cb382 /tests
parent973b859cdd0d815547f6e3d876d04ae56e2de4ff (diff)
parent0de90cfc672ebb8bb7c8ffa01d40380715c42f94 (diff)
downloadnextcloud-server-fa2f122e09781467a12936626470b626e3d062a8.tar.gz
nextcloud-server-fa2f122e09781467a12936626470b626e3d062a8.zip
Merge pull request #5890 from nextcloud/fix-403-and-404-redirect
Fix 403 and 404 redirect
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Templates/TemplatesTest.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/Core/Templates/TemplatesTest.php b/tests/Core/Templates/TemplatesTest.php
deleted file mode 100644
index cd1502fd22c..00000000000
--- a/tests/Core/Templates/TemplatesTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-namespace Tests\Core\Templates;
-
-class TemplatesTest extends \Test\TestCase {
-
- public function test403() {
- $template = \OC::$SERVERROOT . '/core/templates/403.php';
- $expectedHtml = "<ul><li class='error'>\n\t\tAccess forbidden<br><p class='hint'></p></li></ul>";
- $this->assertTemplate($expectedHtml, $template);
- }
-
- public function test404() {
- $template = \OC::$SERVERROOT . '/core/templates/404.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 Nextcloud.</a></p>\n\t\t</li></ul>";
- $this->assertTemplate($expectedHtml, $template);
- }
-
-}