Fix apps warnings
This commit is contained in:
parent
835daedbbc
commit
680b557a4b
2 changed files with 4 additions and 3 deletions
|
@ -26,6 +26,7 @@ namespace OCA\Encryption\Tests;
|
|||
|
||||
|
||||
use OCA\Encryption\HookManager;
|
||||
use OCP\IConfig;
|
||||
use Test\TestCase;
|
||||
|
||||
class HookManagerTest extends TestCase {
|
||||
|
@ -42,7 +43,7 @@ class HookManagerTest extends TestCase {
|
|||
self::$instance->registerHook([
|
||||
$this->getMockBuilder('OCA\Encryption\Hooks\Contracts\IHook')->disableOriginalConstructor()->getMock(),
|
||||
$this->getMockBuilder('OCA\Encryption\Hooks\Contracts\IHook')->disableOriginalConstructor()->getMock(),
|
||||
$this->getMock('NotIHook')
|
||||
$this->createMock(IConfig::class)
|
||||
]);
|
||||
|
||||
$hookInstances = self::invokePrivate(self::$instance, 'hookInstances');
|
||||
|
|
|
@ -170,7 +170,7 @@ class BackupCodeStorageTest extends TestCase {
|
|||
->will($this->returnValue($codes));
|
||||
$this->hasher->expects($this->once())
|
||||
->method('verify')
|
||||
->with('CHALLENGE', 'HASHEDVALUE')
|
||||
->with('CHALLENGE', 'HASHEDVALUE', $this->anything())
|
||||
->will($this->returnValue(true));
|
||||
$this->mapper->expects($this->once())
|
||||
->method('update')
|
||||
|
@ -195,7 +195,7 @@ class BackupCodeStorageTest extends TestCase {
|
|||
->with($user)
|
||||
->will($this->returnValue($codes));
|
||||
$this->hasher->expects($this->never())
|
||||
->method('verifiy');
|
||||
->method('verify');
|
||||
$this->mapper->expects($this->never())
|
||||
->method('update');
|
||||
|
||||
|
|
Loading…
Reference in a new issue