From 6d5e60bd9b801b2fe8dde2c947aa31b1d2b6ae87 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 5 Mar 2015 22:34:46 +0100 Subject: 14719 without public API --- tests/lib/allconfig.php | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'tests') 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(); -- cgit v1.2.3