Fix AppTest and intergration test

This commit is contained in:
Roeland Jago Douma 2016-09-05 08:51:03 +02:00
parent ddb659dd90
commit 581a83c2a1
No known key found for this signature in database
GPG key ID: 1E152838F164D13B
2 changed files with 8 additions and 2 deletions

View file

@ -293,6 +293,7 @@ Feature: provisioning
| provisioning_api |
| systemtags |
| theming |
| twofactor_backupcodes |
| updatenotification |
| workflowengine |
| files_external |

View file

@ -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);