diff options
author | Dominik Eckelmann <deckelmann@gmail.com> | 2012-04-01 18:54:38 +0200 |
---|---|---|
committer | Dominik Eckelmann <deckelmann@gmail.com> | 2012-04-01 18:54:38 +0200 |
commit | a140095c64ed417e0bb3d00132cb0521099f2a93 (patch) | |
tree | 87259f4b701220363c21f3828cbf2232c502a6c3 | |
parent | 9afc28a2ae123ae8a1d88d2a4ebf8b47c61963bf (diff) | |
download | rpg-a140095c64ed417e0bb3d00132cb0521099f2a93.tar.gz rpg-a140095c64ed417e0bb3d00132cb0521099f2a93.tar.bz2 |
fixed pagetemplate unit test
-rw-r--r-- | _test/cases/inc/common_pagetemplate.test.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/_test/cases/inc/common_pagetemplate.test.php b/_test/cases/inc/common_pagetemplate.test.php index 2db8b64ae..cc89f6906 100644 --- a/_test/cases/inc/common_pagetemplate.test.php +++ b/_test/cases/inc/common_pagetemplate.test.php @@ -1,5 +1,6 @@ <?php +require_once DOKU_INC.'inc/init.php'; require_once DOKU_INC.'inc/common.php'; class common_pagetemplate_test extends UnitTestCase { @@ -11,9 +12,7 @@ class common_pagetemplate_test extends UnitTestCase { 'id' => 'page-id-long', 'tpl' => '"@PAGE@" "@!PAGE@" "@!!PAGE@" "@!PAGE!@"', ); - $old = error_reporting(E_ALL & ~E_NOTICE); $this->assertEqual(parsePageTemplate($data), '"page id long" "Page id long" "Page Id Long" "PAGE ID LONG"'); - error_reporting($old); } } //Setup VIM: ex: et ts=4 : |