diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-06-16 11:07:44 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-06-16 11:08:43 +0200 |
commit | 3521f974db2cf7bebac66ab4c987bb3c67d5d02f (patch) | |
tree | c314a2ed40a157f4a74859680fa09c36ddf2200a /tests | |
parent | a40d64ff7fdf65049a1a60196761fa743728e2da (diff) | |
download | nextcloud-server-3521f974db2cf7bebac66ab4c987bb3c67d5d02f.tar.gz nextcloud-server-3521f974db2cf7bebac66ab4c987bb3c67d5d02f.zip |
assert app is loaded in unit tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Authentication/TwoFactorAuth/ManagerTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/Authentication/TwoFactorAuth/ManagerTest.php b/tests/lib/Authentication/TwoFactorAuth/ManagerTest.php index 283ba7f9424..586fd3aaa2e 100644 --- a/tests/lib/Authentication/TwoFactorAuth/ManagerTest.php +++ b/tests/lib/Authentication/TwoFactorAuth/ManagerTest.php @@ -86,6 +86,10 @@ class ManagerTest extends TestCase { '\OCA\MyCustom2faApp\FakeProvider', ], ])); + + $this->manager->expects($this->once()) + ->method('loadTwoFactorApp') + ->with('mycustom2faapp'); } /** @@ -97,6 +101,9 @@ class ManagerTest extends TestCase { ->method('getEnabledAppsForUser') ->with($this->user) ->will($this->returnValue(['faulty2faapp'])); + $this->manager->expects($this->once()) + ->method('loadTwoFactorApp') + ->with('faulty2faapp'); $this->appManager->expects($this->once()) ->method('getAppInfo') |