summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-02-25 15:10:39 +0000
committerChristopher Smith <chris@jalakai.co.uk>2013-02-25 15:10:39 +0000
commit5ba389b2134d71e9b0a8b78a465bb4e8849ab664 (patch)
treed4b77c70e899618c3f4a69552b9200f55524db13 /_test
parent7ae29fa453970036576e8b18fe228c24a25e94ff (diff)
downloadrpg-5ba389b2134d71e9b0a8b78a465bb4e8849ab664.tar.gz
rpg-5ba389b2134d71e9b0a8b78a465bb4e8849ab664.tar.bz2
(incl. the refactored file)
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/common_basicinfo.test.php50
1 files changed, 0 insertions, 50 deletions
diff --git a/_test/tests/inc/common_basicinfo.test.php b/_test/tests/inc/common_basicinfo.test.php
index 2e383ef8b..0369474c9 100644
--- a/_test/tests/inc/common_basicinfo.test.php
+++ b/_test/tests/inc/common_basicinfo.test.php
@@ -59,56 +59,6 @@ class common_infofunctions_test extends DokuWikiTest {
$this->assertEquals(basicinfo($ID,true),$info);
}
- /**
- * We're interested in the extra keys required for $INFO when its a page request
- * and that $REV, $RANGE globals are set/cleared correctly
- */
- function test_pageinfo(){
- global $ID,$conf;
- $ID = 'wiki:start';
-
- $info = $this->_get_info();
- $info['id'] = 'wiki:start';
- $info['namespace'] = 'wiki';
- $info['rev'] = null;
- $info['subscribed'] = false;
- $info['locked'] = false;
- $info['filepath'] = $conf['datadir'].'/wiki/start.txt';
- $info['exists'] = false;
- $info['writable'] = true;
- $info['editable'] = true;
- $info['lastmod'] = false;
- $info['meta'] = array();
- $info['ip'] = null;
- $info['user'] = null;
- $info['sum'] = null;
- $info['editor'] = null;
-
- // basic test, no revision
- $this->assertEquals(pageinfo(),$info);
-
- // TODO: test with revision = current page
-
- // TODO: test with true revision
-
- // TODO: test with revision & range
-
- // TODO: validate against the same test run on master branch pre this change
- }
-
- /**
- * We're interested in the extra keys for $INFO when its a media request
- */
- function test_mediainfo(){
- global $NS, $IMG;
- $NS = '';
- $IMG = 'testimage.png';
-
- $info = $this->_get_info();
- $info['image'] = 'testimage.png';
-
- $this->assertEquals(mediainfo(),$info);
- }
}
//Setup VIM: ex: et ts=4 :