summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-04-08 00:53:47 +0200
committerDominik Eckelmann <deckelmann@gmail.com>2012-04-08 00:53:47 +0200
commitd6b3716e769e89a1578e39c5191a8e0988b04769 (patch)
tree63bb7c4e8c43027b430882dc40585ae9d84337f8 /_test
parent7d2189b5434dcc6454f11c6cf2e13133a531d66f (diff)
downloadrpg-d6b3716e769e89a1578e39c5191a8e0988b04769.tar.gz
rpg-d6b3716e769e89a1578e39c5191a8e0988b04769.tar.bz2
fixed unittest and transformed to phpunit
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/pageutils_resolve_pageid.test.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/_test/cases/inc/pageutils_resolve_pageid.test.php b/_test/cases/inc/pageutils_resolve_pageid.test.php
index c65ed1866..ec56af2a1 100644
--- a/_test/cases/inc/pageutils_resolve_pageid.test.php
+++ b/_test/cases/inc/pageutils_resolve_pageid.test.php
@@ -48,7 +48,6 @@ class init_resolve_pageid_test extends UnitTestCase {
$tests[] = array('foo','.:','foo:start');
$tests[] = array('','foo:','foo:start');
$tests[] = array('foo','foo:','foo:start');
- $tests[] = array('foo','playground:','playground:playground');
// empty $page
global $ID;
@@ -69,7 +68,6 @@ class init_resolve_pageid_test extends UnitTestCase {
function test_resolve_pageid_empty_homepage() {
global $ID;
$ID = '';
-
global $conf;
$conf['start'] = 'someverystrangestartname';
@@ -77,7 +75,7 @@ class init_resolve_pageid_test extends UnitTestCase {
$page = '';
$exist = true;
- resolve_pageid($ns, $page, $exist);
+ @resolve_pageid($ns, $page, $exist);
$this->assertEqual($page, $conf['start']);
}