diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-05 22:34:46 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-05 22:36:17 +0100 |
commit | 6d5e60bd9b801b2fe8dde2c947aa31b1d2b6ae87 (patch) | |
tree | dcaf719cf7115eb4f1fb57efa189d505815990d5 /tests | |
parent | a7fc0fc07b42dbd3d88cb73c1b0ab16910a1b828 (diff) | |
download | nextcloud-server-6d5e60bd9b801b2fe8dde2c947aa31b1d2b6ae87.tar.gz nextcloud-server-6d5e60bd9b801b2fe8dde2c947aa31b1d2b6ae87.zip |
14719 without public API
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/allconfig.php | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/lib/allconfig.php b/tests/lib/allconfig.php index 290e40e8d88..7f8ad5ec221 100644 --- a/tests/lib/allconfig.php +++ b/tests/lib/allconfig.php @@ -26,33 +26,6 @@ class TestAllConfig extends \Test\TestCase { return new \OC\AllConfig($systemConfig, $connection); } - // FIXME: Actually an integration test... – Shouldn't be in the unit test at all. - public function testGetAppsForKeyValue() { - $config = $this->getConfig(); - - // preparation - add something to the database - $data = [ - ['myFirstApp', 'key1', 'value1'], - ['mySecondApp', 'key1', 'value2'], - ['mySecondApp', 'key3', 'value2'], - ['myThirdApp', 'key3', 'value3'], - ['myThirdApp', 'key3', 'value2'], - ]; - foreach ($data as $entry) { - $config->setAppValue($entry[0], $entry[1], $entry[2]); - } - - $this->assertEquals(['mySecondApp'], $config->getAppsForKeyValue('key1', 'value2')); - $this->assertEquals(['mySecondApp', 'myThirdApp'], $config->getAppsForKeyValue('key3', 'value2')); - $this->assertEquals([], $config->getAppsForKeyValue('NotExisting', 'NotExistingValue')); - - // cleanup - foreach ($data as $entry) { - $config->deleteAppValue($entry[0], $entry[1]); - - } - } - public function testDeleteUserValue() { $config = $this->getConfig(); |