assert app is loaded in unit tests

This commit is contained in:
Christoph Wurst 2016-06-16 11:07:44 +02:00
parent a40d64ff7f
commit 3521f974db
No known key found for this signature in database
GPG key ID: FEECD2543CA6EAF0

View file

@ -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')