fix appconfig tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
b3037dee6a
commit
c02e6fcae2
|
@ -348,10 +348,10 @@ class AppConfig implements IAppConfig {
|
||||||
$rows = $result->fetchAll();
|
$rows = $result->fetchAll();
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
if (!isset($this->cache[$row['appid']])) {
|
if (!isset($this->cache[$row['appid']])) {
|
||||||
$this->cache[$row['appid']] = [];
|
$this->cache[(string)$row['appid']] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->cache[$row['appid']][$row['configkey']] = $row['configvalue'];
|
$this->cache[(string)$row['appid']][(string)$row['configkey']] = (string)$row['configvalue'];
|
||||||
}
|
}
|
||||||
$result->closeCursor();
|
$result->closeCursor();
|
||||||
|
|
||||||
|
|
|
@ -140,11 +140,11 @@ class AppConfigTest extends TestCase {
|
||||||
public function testGetApps() {
|
public function testGetApps() {
|
||||||
$config = new \OC\AppConfig(\OC::$server->getDatabaseConnection());
|
$config = new \OC\AppConfig(\OC::$server->getDatabaseConnection());
|
||||||
|
|
||||||
$this->assertEquals([
|
$this->assertEqualsCanonicalizing([
|
||||||
'anotherapp',
|
'anotherapp',
|
||||||
'someapp',
|
'someapp',
|
||||||
'testapp',
|
'testapp',
|
||||||
'123456',
|
123456,
|
||||||
], $config->getApps());
|
], $config->getApps());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ class AppConfigTest extends TestCase {
|
||||||
$config = new \OC\AppConfig(\OC::$server->getDatabaseConnection());
|
$config = new \OC\AppConfig(\OC::$server->getDatabaseConnection());
|
||||||
|
|
||||||
$keys = $config->getKeys('testapp');
|
$keys = $config->getKeys('testapp');
|
||||||
$this->assertEquals([
|
$this->assertEqualsCanonicalizing([
|
||||||
'deletethis',
|
'deletethis',
|
||||||
'depends_on',
|
'depends_on',
|
||||||
'enabled',
|
'enabled',
|
||||||
|
|
Loading…
Reference in New Issue