Browse Source

sort expected result in tests

tags/v7.0.0alpha2
Robin Appelman 10 years ago
parent
commit
3b1df29318
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      tests/lib/appconfig.php

+ 2
- 0
tests/lib/appconfig.php View File

@@ -42,6 +42,7 @@ class Test_Appconfig extends PHPUnit_Framework_TestCase {
while ($row = $result->fetchRow()) {
$expected[] = $row['appid'];
}
sort($expected);
$apps = \OC_Appconfig::getApps();
$this->assertEquals($expected, $apps);
}
@@ -53,6 +54,7 @@ class Test_Appconfig extends PHPUnit_Framework_TestCase {
while($row = $result->fetchRow()) {
$expected[] = $row["configkey"];
}
sort($expected);
$keys = \OC_Appconfig::getKeys('testapp');
$this->assertEquals($expected, $keys);
}

Loading…
Cancel
Save