summaryrefslogtreecommitdiffstats
path: root/tests/lib/App
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-02-22 15:45:55 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-02-22 15:57:14 +0100
commit36c51bc4f160d8b18de64739e9ffccccee8a5b25 (patch)
treea7ed5edf4aa085a8c36792993a7be8caffe681cb /tests/lib/App
parent2083103d0ba8ce41489632ebe240f6dde51baccc (diff)
downloadnextcloud-server-36c51bc4f160d8b18de64739e9ffccccee8a5b25.tar.gz
nextcloud-server-36c51bc4f160d8b18de64739e9ffccccee8a5b25.zip
Parse multiple navigation items
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests/lib/App')
-rw-r--r--tests/lib/App/InfoParserTest.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/lib/App/InfoParserTest.php b/tests/lib/App/InfoParserTest.php
index 5a3847a71e8..4fa8b2a06a5 100644
--- a/tests/lib/App/InfoParserTest.php
+++ b/tests/lib/App/InfoParserTest.php
@@ -47,12 +47,14 @@ class InfoParserTest extends TestCase {
$this->parserTest($expectedJson, $xmlFile, self::$cache);
}
- function providesInfoXml() {
- return array(
- array('expected-info.json', 'valid-info.xml'),
- array(null, 'invalid-info.xml'),
- array('expected-info.json', 'valid-info.xml'),
- array(null, 'invalid-info.xml'),
- );
+ public function providesInfoXml(): array {
+ return [
+ ['expected-info.json', 'valid-info.xml'],
+ [null, 'invalid-info.xml'],
+ ['expected-info.json', 'valid-info.xml'],
+ [null, 'invalid-info.xml'],
+ ['navigation-one-item.json', 'navigation-one-item.xml'],
+ ['navigation-two-item.json', 'navigation-two-item.xml'],
+ ];
}
}