diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-17 12:30:47 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-29 22:21:54 +0100 |
commit | f30877ea7c758346b700e4ac0f9c684a5ae99c7f (patch) | |
tree | ffbdd342c3bcc42d08d7315e78dc3075fe93a2b9 /apps/twofactor_backupcodes/tests | |
parent | 139055c1ddec25465dd7644de9866cd6a1048da2 (diff) | |
download | nextcloud-server-f30877ea7c758346b700e4ac0f9c684a5ae99c7f.tar.gz nextcloud-server-f30877ea7c758346b700e4ac0f9c684a5ae99c7f.zip |
Provide initial state
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/twofactor_backupcodes/tests')
-rw-r--r-- | apps/twofactor_backupcodes/tests/Unit/Provider/BackupCodesProviderTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Provider/BackupCodesProviderTest.php b/apps/twofactor_backupcodes/tests/Unit/Provider/BackupCodesProviderTest.php index cec5b7b2160..4dab536c552 100644 --- a/apps/twofactor_backupcodes/tests/Unit/Provider/BackupCodesProviderTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/Provider/BackupCodesProviderTest.php @@ -25,6 +25,7 @@ namespace OCA\TwoFactorBackupCodes\Tests\Unit\Provider; use OC\App\AppManager; use OCA\TwoFactorBackupCodes\Provider\BackupCodesProvider; use OCA\TwoFactorBackupCodes\Service\BackupCodeStorage; +use OCP\IInitialStateService; use OCP\IL10N; use OCP\IUser; use OCP\Template; @@ -45,6 +46,9 @@ class BackupCodesProviderTest extends TestCase { /** @var AppManager|PHPUnit_Framework_MockObject_MockObject */ private $appManager; + /** @var IInitialStateService|PHPUnit_Framework_MockObject_MockObject */ + private $initialState; + /** @var BackupCodesProvider */ private $provider; @@ -55,8 +59,9 @@ class BackupCodesProviderTest extends TestCase { $this->storage = $this->createMock(BackupCodeStorage::class); $this->l10n = $this->createMock(IL10N::class); $this->appManager = $this->createMock(AppManager::class); + $this->initialState = $this->createMock(IInitialStateService::class); - $this->provider = new BackupCodesProvider($this->appName, $this->storage, $this->l10n, $this->appManager); + $this->provider = new BackupCodesProvider($this->appName, $this->storage, $this->l10n, $this->appManager, $this->initialState); } public function testGetId() { |