summaryrefslogtreecommitdiff
path: root/lib/plugins/config/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-11-16 14:48:14 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-11-16 14:48:14 +0100
commita24fc53e2623640cf5e2d00de741c1b67c9bb294 (patch)
treeb8d7f73486b767eb5a50872edd35b08182bbdc46 /lib/plugins/config/_test
parentcba21baacb4880eefd35279b0589e035c5a5c78e (diff)
downloadrpg-a24fc53e2623640cf5e2d00de741c1b67c9bb294.tar.gz
rpg-a24fc53e2623640cf5e2d00de741c1b67c9bb294.tar.bz2
added failing test for array type
Diffstat (limited to 'lib/plugins/config/_test')
-rw-r--r--lib/plugins/config/_test/configuration.test.php2
-rw-r--r--lib/plugins/config/_test/data/config.php2
-rw-r--r--lib/plugins/config/_test/data/metadata.php2
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/plugins/config/_test/configuration.test.php b/lib/plugins/config/_test/configuration.test.php
index eeeff61a3..ee03f3849 100644
--- a/lib/plugins/config/_test/configuration.test.php
+++ b/lib/plugins/config/_test/configuration.test.php
@@ -26,6 +26,8 @@ class plugin_config_configuration_test extends DokuWikiTest {
$this->assertEquals('Hello World', $conf['str3']);
$this->assertEquals("Hello 'World'", $conf['str4']);
$this->assertEquals('Hello "World"', $conf['str5']);
+
+ $this->assertEquals(array('foo', 'bar', 'baz'), $conf['arr1']);
}
} \ No newline at end of file
diff --git a/lib/plugins/config/_test/data/config.php b/lib/plugins/config/_test/data/config.php
index 4ed450e93..15d6359ad 100644
--- a/lib/plugins/config/_test/data/config.php
+++ b/lib/plugins/config/_test/data/config.php
@@ -10,5 +10,7 @@ $conf['str3'] = "Hello World";
$conf['str4'] = "Hello 'World'";
$conf['str5'] = "Hello \"World\"";
+$conf['arr1'] = array('foo','bar','baz');
+
$conf['foo']['bar'] = 'x1';
$conf['foo']['baz'] = 'x2';
diff --git a/lib/plugins/config/_test/data/metadata.php b/lib/plugins/config/_test/data/metadata.php
index 34ab42be7..12902e525 100644
--- a/lib/plugins/config/_test/data/metadata.php
+++ b/lib/plugins/config/_test/data/metadata.php
@@ -9,3 +9,5 @@ $meta['str3'] = array('string');
$meta['str4'] = array('string');
$meta['str5'] = array('string');
+$meta['arr1'] = array('array');
+