assert app is loaded in unit tests

pull/186/head^2
Christoph Wurst 10 years ago
parent a40d64ff7f
commit 3521f974db
No known key found for this signature in database
GPG Key ID: FEECD2543CA6EAF0
  1. 7
      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')

Loading…
Cancel
Save