diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-19 12:18:32 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-20 17:56:05 +0100 |
commit | 09fd34eed908203674721af86ce889bfd0a0ef8d (patch) | |
tree | fb7e48e5a5f727018ff282f2f38e25ae9669ee8a /tests | |
parent | 985f8c3f69a5dd940271481ba18eea784893406e (diff) | |
download | nextcloud-server-09fd34eed908203674721af86ce889bfd0a0ef8d.tar.gz nextcloud-server-09fd34eed908203674721af86ce889bfd0a0ef8d.zip |
drop OC_Preferences::getUsers and getApps
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/preferences-singleton.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/lib/preferences-singleton.php b/tests/lib/preferences-singleton.php index 01e15acdfe1..2bea889da9b 100644 --- a/tests/lib/preferences-singleton.php +++ b/tests/lib/preferences-singleton.php @@ -40,34 +40,6 @@ class Test_Preferences extends \Test\TestCase { parent::tearDownAfterClass(); } - public function testGetUsers() { - $query = \OC_DB::prepare('SELECT DISTINCT `userid` FROM `*PREFIX*preferences`'); - $result = $query->execute(); - $expected = array(); - while ($row = $result->fetchRow()) { - $expected[] = $row['userid']; - } - - sort($expected); - $users = \OC_Preferences::getUsers(); - sort($users); - $this->assertEquals($expected, $users); - } - - public function testGetApps() { - $query = \OC_DB::prepare('SELECT DISTINCT `appid` FROM `*PREFIX*preferences` WHERE `userid` = ?'); - $result = $query->execute(array('Someuser')); - $expected = array(); - while ($row = $result->fetchRow()) { - $expected[] = $row['appid']; - } - - sort($expected); - $apps = \OC_Preferences::getApps('Someuser'); - sort($apps); - $this->assertEquals($expected, $apps); - } - public function testGetKeys() { $query = \OC_DB::prepare('SELECT DISTINCT `configkey` FROM `*PREFIX*preferences` WHERE `userid` = ? AND `appid` = ?'); $result = $query->execute(array('Someuser', 'getkeysapp')); |