assert app is loaded in unit tests
This commit is contained in:
parent
a40d64ff7f
commit
3521f974db
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue