diff options
Diffstat (limited to 'lib/plugins/config/_test')
-rw-r--r-- | lib/plugins/config/_test/configuration.test.php | 2 | ||||
-rw-r--r-- | lib/plugins/config/_test/data/config.php | 2 | ||||
-rw-r--r-- | lib/plugins/config/_test/data/metadata.php | 2 |
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'); + |