Fix apps warnings

This commit is contained in:
Roeland Jago Douma 2016-09-07 20:34:47 +02:00
parent 835daedbbc
commit 680b557a4b
No known key found for this signature in database
GPG key ID: 1E152838F164D13B
2 changed files with 4 additions and 3 deletions

View file

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

View file

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