sort expected result in tests

This commit is contained in:
Robin Appelman 2014-02-13 13:56:02 +01:00
parent 50cc6a85e5
commit 3b1df29318
1 changed files with 2 additions and 0 deletions

View File

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