diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-02-24 08:54:43 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:57:01 +0100 |
commit | 6ee7286b419f77ae127257bbbf6a57415678076c (patch) | |
tree | ff3da316e3dbfcf8cf8ceb633a38119e51c7314d /tests/lib/Files/Stream/EncryptionTest.php | |
parent | ba2b5427753c827ad34388ac26ed67f3b72812c2 (diff) | |
download | nextcloud-server-6ee7286b419f77ae127257bbbf6a57415678076c.tar.gz nextcloud-server-6ee7286b419f77ae127257bbbf6a57415678076c.zip |
Fix tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/lib/Files/Stream/EncryptionTest.php')
-rw-r--r-- | tests/lib/Files/Stream/EncryptionTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Files/Stream/EncryptionTest.php b/tests/lib/Files/Stream/EncryptionTest.php index d7a5554acfd..3ded6ef91d6 100644 --- a/tests/lib/Files/Stream/EncryptionTest.php +++ b/tests/lib/Files/Stream/EncryptionTest.php @@ -7,6 +7,7 @@ use OC\Files\View; use OC\Memcache\ArrayCache; use OCP\Files\Cache\ICache; use OCP\IConfig; +use Symfony\Component\EventDispatcher\EventDispatcherInterface; class EncryptionTest extends \Test\TestCase { @@ -47,7 +48,7 @@ class EncryptionTest extends \Test\TestCase { $file->expects($this->any())->method('getAccessList')->willReturn([]); $util = $this->getMockBuilder('\OC\Encryption\Util') ->setMethods(['getUidAndFilename']) - ->setConstructorArgs([new View(), new \OC\User\Manager($config), $groupManager, $config, $arrayCache]) + ->setConstructorArgs([new View(), new \OC\User\Manager($config, $this->createMock(EventDispatcherInterface::class)), $groupManager, $config, $arrayCache]) ->getMock(); $util->expects($this->any()) ->method('getUidAndFilename') |