Skip to content

Commit

Permalink
Fix unit test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 authored and Vincent Petry committed Jan 11, 2017
1 parent e898c72 commit 85c5cc6
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions tests/lib/encryption/keys/storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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);
}

Expand Down

0 comments on commit 85c5cc6

Please sign in to comment.