From 85c5cc62e01cadfbfcecca930a8f3ff4587ae7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 14 Dec 2016 21:41:06 +0100 Subject: [PATCH] Fix unit test execution --- tests/lib/encryption/keys/storage.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/lib/encryption/keys/storage.php b/tests/lib/encryption/keys/storage.php index b5b91f886a38..1b92327e7529 100644 --- a/tests/lib/encryption/keys/storage.php +++ b/tests/lib/encryption/keys/storage.php @@ -24,17 +24,29 @@ namespace Test\Encryption\Keys; use OC\Encryption\Keys\Storage; +use OC\Encryption\Util; +use OC\Files\View; use Test\TestCase; +use Test\Traits\UserTrait; +/** + * Class StorageTest + * + * @group DB + * + * @package Test\Encryption\Keys + */ class StorageTest extends TestCase { + use UserTrait; + /** @var Storage */ protected $storage; - /** @var \PHPUnit_Framework_MockObject_MockObject */ + /** @var \PHPUnit_Framework_MockObject_MockObject | Util */ protected $util; - /** @var \PHPUnit_Framework_MockObject_MockObject */ + /** @var \PHPUnit_Framework_MockObject_MockObject | View */ protected $view; /** @var \PHPUnit_Framework_MockObject_MockObject */ @@ -55,6 +67,9 @@ public function setUp() { ->disableOriginalConstructor() ->getMock(); + $this->createUser('user1', '123456'); + $this->createUser('user2', '123456'); + $this->storage = new Storage($this->view, $this->util); }