diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-12 12:49:11 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-12 12:49:11 +0200 |
commit | fdee771aca39f394c940edfcaa5a15826b078974 (patch) | |
tree | 400c956152f57c14bdfae094bbd3de265dd7baba /core | |
parent | 276b8a583112203b9b71e4ac2b372e50ca62df9b (diff) | |
download | nextcloud-server-fdee771aca39f394c940edfcaa5a15826b078974.tar.gz nextcloud-server-fdee771aca39f394c940edfcaa5a15826b078974.zip |
Add unit testing capabilities for templates (#23708)
Add unit testing capabilities for templates
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/403.php | 2 | ||||
-rw-r--r-- | core/templates/404.php | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/core/templates/403.php b/core/templates/403.php index a19009c3546..7d07c72c873 100644 --- a/core/templates/403.php +++ b/core/templates/403.php @@ -1,4 +1,5 @@ <?php +// @codeCoverageIgnoreStart if(!isset($_)) {//also provide standalone error page require_once '../../lib/base.php'; @@ -6,6 +7,7 @@ if(!isset($_)) {//also provide standalone error page $tmpl->printPage(); exit; } +// @codeCoverageIgnoreEnd ?> <ul> <li class='error'> diff --git a/core/templates/404.php b/core/templates/404.php index 2b12b12cff7..a0d2f0160b7 100644 --- a/core/templates/404.php +++ b/core/templates/404.php @@ -1,6 +1,8 @@ <?php /** @var $_ array */ /** @var $l OC_L10N */ +/** @var $theme OC_Theme */ +// @codeCoverageIgnoreStart if(!isset($_)) {//also provide standalone error page require_once '../../lib/base.php'; @@ -8,6 +10,7 @@ if(!isset($_)) {//also provide standalone error page $tmpl->printPage(); exit; } +// @codeCoverageIgnoreEnd ?> <?php if (isset($_['content'])): ?> <?php print_unescaped($_['content']) ?> |