diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php index bfb2893955f89..a29be4c30471d 100644 --- a/tests/lib/App/AppManagerTest.php +++ b/tests/lib/App/AppManagerTest.php @@ -140,7 +140,7 @@ public function testNotEnableIfNotInstalled() { $this->assertEquals('no', $this->appConfig->getValue( 'some_random_name_which_i_hope_is_not_an_app', 'enabled', 'no' )); - } + } public function testEnableAppForGroups() { $groups = array( @@ -338,6 +338,7 @@ public function testGetInstalledApps() { 'test3', 'twofactor_backupcodes', 'workflowengine', + 'oauth2', ]; $this->assertEquals($apps, $this->manager->getInstalledApps()); } @@ -362,7 +363,8 @@ public function testGetAppsForUser() { 'test1', 'test3', 'twofactor_backupcodes', - 'workflowengine' + 'workflowengine', + 'oauth2', ]; $this->assertEquals($enabled, $this->manager->getEnabledAppsForUser($user)); } @@ -387,6 +389,7 @@ public function testGetAppsNeedingUpgrade() { 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], 'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'], 'workflowengine' => ['id' => 'workflowengine'], + 'oauth2' => ['id' => 'oauth2'], ]; $manager->expects($this->any()) @@ -395,7 +398,7 @@ public function testGetAppsNeedingUpgrade() { function($appId) use ($appInfos) { return $appInfos[$appId]; } - )); + )); $this->appConfig->setValue('test1', 'enabled', 'yes'); $this->appConfig->setValue('test1', 'installed_version', '1.0.0'); @@ -432,6 +435,7 @@ public function testGetIncompatibleApps() { 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], 'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'], 'workflowengine' => ['id' => 'workflowengine'], + 'oauth2' => ['id' => 'oauth2'], ]; $manager->expects($this->any()) @@ -440,7 +444,7 @@ public function testGetIncompatibleApps() { function($appId) use ($appInfos) { return $appInfos[$appId]; } - )); + )); $this->appConfig->setValue('test1', 'enabled', 'yes'); $this->appConfig->setValue('test2', 'enabled', 'yes');