$this->assertEquals('no', $this->appConfig->getValue(
'some_random_name_which_i_hope_is_not_an_app', 'enabled', 'no'
));
- }
+ }
public function testEnableAppForGroups() {
$groups = array(
'federatedfilesharing',
'files',
'lookup_server_connector',
+ 'oauth2',
'provisioning_api',
'test1',
'test3',
'federatedfilesharing',
'files',
'lookup_server_connector',
+ 'oauth2',
'provisioning_api',
'test1',
'test3',
'twofactor_backupcodes',
- 'workflowengine'
+ 'workflowengine',
];
$this->assertEquals($enabled, $this->manager->getEnabledAppsForUser($user));
}
'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'],
'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'],
'workflowengine' => ['id' => 'workflowengine'],
+ 'oauth2' => ['id' => 'oauth2'],
];
$manager->expects($this->any())
function($appId) use ($appInfos) {
return $appInfos[$appId];
}
- ));
+ ));
$this->appConfig->setValue('test1', 'enabled', 'yes');
$this->appConfig->setValue('test1', 'installed_version', '1.0.0');
'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'],
'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'],
'workflowengine' => ['id' => 'workflowengine'],
+ 'oauth2' => ['id' => 'oauth2'],
];
$manager->expects($this->any())
function($appId) use ($appInfos) {
return $appInfos[$appId];
}
- ));
+ ));
$this->appConfig->setValue('test1', 'enabled', 'yes');
$this->appConfig->setValue('test2', 'enabled', 'yes');
'dav',
'federatedfilesharing',
'lookup_server_connector',
+ 'oauth2',
'provisioning_api',
'twofactor_backupcodes',
'workflowengine',
'dav',
'federatedfilesharing',
'lookup_server_connector',
+ 'oauth2',
'provisioning_api',
'twofactor_backupcodes',
'workflowengine',
'dav',
'federatedfilesharing',
'lookup_server_connector',
+ 'oauth2',
'provisioning_api',
'twofactor_backupcodes',
'workflowengine',
'dav',
'federatedfilesharing',
'lookup_server_connector',
+ 'oauth2',
'provisioning_api',
'twofactor_backupcodes',
'workflowengine',
'dav',
'federatedfilesharing',
'lookup_server_connector',
+ 'oauth2',
'provisioning_api',
'twofactor_backupcodes',
'workflowengine',
);
$apps = \OC_App::getEnabledApps();
- $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps);
+ $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps);
// mock should not be called again here
$apps = \OC_App::getEnabledApps();
- $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps);
+ $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps);
$this->restoreAppConfig();
\OC_User::setUserId(null);