diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-09-02 12:53:44 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-05 08:51:13 +0200 |
commit | ddb659dd90229f0ae02ab10bc67778667da66cd2 (patch) | |
tree | dfd7edc4405a5b83d2ed2e5d4af9080987929caa /tests/lib | |
parent | 8acb734854484e2ffd235929f6e7d0ba4c273844 (diff) | |
download | nextcloud-server-ddb659dd90229f0ae02ab10bc67778667da66cd2.tar.gz nextcloud-server-ddb659dd90229f0ae02ab10bc67778667da66cd2.zip |
increase core version number to trigger db ugprade and fix app manager tests
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/App/ManagerTest.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/lib/App/ManagerTest.php b/tests/lib/App/ManagerTest.php index 80754413fc8..f3a91d4f5f4 100644 --- a/tests/lib/App/ManagerTest.php +++ b/tests/lib/App/ManagerTest.php @@ -306,7 +306,8 @@ class ManagerTest extends TestCase { $this->appConfig->setValue('test1', 'enabled', 'yes'); $this->appConfig->setValue('test2', 'enabled', 'no'); $this->appConfig->setValue('test3', 'enabled', '["foo"]'); - $this->assertEquals(['dav', 'federatedfilesharing', 'files', 'test1', 'test3', 'workflowengine'], $this->manager->getInstalledApps()); + $apps = ['dav', 'federatedfilesharing', 'files', 'test1', 'test3', 'twofactor_backupcodes', 'workflowengine']; + $this->assertEquals($apps, $this->manager->getInstalledApps()); } public function testGetAppsForUser() { @@ -320,7 +321,16 @@ class ManagerTest extends TestCase { $this->appConfig->setValue('test2', 'enabled', 'no'); $this->appConfig->setValue('test3', 'enabled', '["foo"]'); $this->appConfig->setValue('test4', 'enabled', '["asd"]'); - $this->assertEquals(['dav', 'federatedfilesharing', 'files', 'test1', 'test3', 'workflowengine'], $this->manager->getEnabledAppsForUser($user)); + $enabled = [ + 'dav', + 'federatedfilesharing', + 'files', + 'test1', + 'test3', + 'twofactor_backupcodes', + 'workflowengine' + ]; + $this->assertEquals($enabled, $this->manager->getEnabledAppsForUser($user)); } public function testGetAppsNeedingUpgrade() { @@ -338,6 +348,7 @@ class ManagerTest extends TestCase { 'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'], 'test4' => ['id' => 'test4', 'version' => '3.0.0', 'requiremin' => '8.1.0'], 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], + 'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'], 'workflowengine' => ['id' => 'workflowengine'], ]; @@ -379,6 +390,7 @@ class ManagerTest extends TestCase { 'test2' => ['id' => 'test2', 'version' => '1.0.0', 'requiremin' => '8.2.0'], 'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'], 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], + 'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'], 'workflowengine' => ['id' => 'workflowengine'], ]; |