Add all parameters to returnValueMap

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-01-30 16:17:51 +01:00 committed by Morris Jobke
parent efbdad2d0c
commit 372e06d742
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
2 changed files with 4 additions and 4 deletions

View File

@ -72,8 +72,8 @@ class PluginManagerTest extends TestCase {
$appManager->method('getAppInfo')
->will($this->returnValueMap([
['adavapp', $appInfo1],
['adavapp2', $appInfo2],
['adavapp', false, null, $appInfo1],
['adavapp2', false, null, $appInfo2],
]));
$pluginManager = new PluginManager($server, $appManager);

View File

@ -172,14 +172,14 @@ class ManagerTest extends TestCase {
->method('getAppInfo')
->will($this->returnValueMap([
[
'mycustom2faapp',
'mycustom2faapp', false, null,
['two-factor-providers' => [
'\OCA\MyCustom2faApp\FakeProvider',
]
]
],
[
'twofactor_backupcodes',
'twofactor_backupcodes', false, null,
['two-factor-providers' => [
'\OCA\TwoFactorBackupCodes\Provider\FakeBackupCodesProvider',
]