Fix AppTest and intergration test
This commit is contained in:
parent
ddb659dd90
commit
581a83c2a1
2 changed files with 8 additions and 2 deletions
|
@ -293,6 +293,7 @@ Feature: provisioning
|
|||
| provisioning_api |
|
||||
| systemtags |
|
||||
| theming |
|
||||
| twofactor_backupcodes |
|
||||
| updatenotification |
|
||||
| workflowengine |
|
||||
| files_external |
|
||||
|
|
|
@ -316,6 +316,7 @@ class AppTest extends \Test\TestCase {
|
|||
'appforgroup12',
|
||||
'dav',
|
||||
'federatedfilesharing',
|
||||
'twofactor_backupcodes',
|
||||
'workflowengine',
|
||||
),
|
||||
false
|
||||
|
@ -331,6 +332,7 @@ class AppTest extends \Test\TestCase {
|
|||
'appforgroup2',
|
||||
'dav',
|
||||
'federatedfilesharing',
|
||||
'twofactor_backupcodes',
|
||||
'workflowengine',
|
||||
),
|
||||
false
|
||||
|
@ -347,6 +349,7 @@ class AppTest extends \Test\TestCase {
|
|||
'appforgroup2',
|
||||
'dav',
|
||||
'federatedfilesharing',
|
||||
'twofactor_backupcodes',
|
||||
'workflowengine',
|
||||
),
|
||||
false
|
||||
|
@ -363,6 +366,7 @@ class AppTest extends \Test\TestCase {
|
|||
'appforgroup2',
|
||||
'dav',
|
||||
'federatedfilesharing',
|
||||
'twofactor_backupcodes',
|
||||
'workflowengine',
|
||||
),
|
||||
false,
|
||||
|
@ -379,6 +383,7 @@ class AppTest extends \Test\TestCase {
|
|||
'appforgroup2',
|
||||
'dav',
|
||||
'federatedfilesharing',
|
||||
'twofactor_backupcodes',
|
||||
'workflowengine',
|
||||
),
|
||||
true,
|
||||
|
@ -457,11 +462,11 @@ class AppTest extends \Test\TestCase {
|
|||
);
|
||||
|
||||
$apps = \OC_App::getEnabledApps();
|
||||
$this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'workflowengine'), $apps);
|
||||
$this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'twofactor_backupcodes', 'workflowengine'), $apps);
|
||||
|
||||
// mock should not be called again here
|
||||
$apps = \OC_App::getEnabledApps();
|
||||
$this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'workflowengine'), $apps);
|
||||
$this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'twofactor_backupcodes', 'workflowengine'), $apps);
|
||||
|
||||
$this->restoreAppConfig();
|
||||
\OC_User::setUserId(null);
|
||||
|
|
Loading…
Reference in a new issue