diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-11-25 16:09:38 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-11-27 21:56:40 +0300 |
commit | 9a2694fcb0093afee13d0cd91de15b34b747cc62 (patch) | |
tree | e8a448a61ed62ee47cd997c0d3a4065f472c100d /tests/lib/DirectEditing/ManagerTest.php | |
parent | bc36cc808fb9ed9ff22c42246fe68f06cedb902e (diff) |
Code style fixes and cleanup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/lib/DirectEditing/ManagerTest.php')
-rw-r--r-- | tests/lib/DirectEditing/ManagerTest.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/lib/DirectEditing/ManagerTest.php b/tests/lib/DirectEditing/ManagerTest.php index b2e58efd8e2..a3d29efbce5 100644 --- a/tests/lib/DirectEditing/ManagerTest.php +++ b/tests/lib/DirectEditing/ManagerTest.php @@ -7,7 +7,6 @@ use OC\Files\Node\File; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Http\Response; -use OCP\AppFramework\Http\TemplateResponse; use OCP\DirectEditing\ACreateEmpty; use OCP\DirectEditing\IEditor; use OCP\DirectEditing\IToken; @@ -16,6 +15,7 @@ use OCP\Files\IRootFolder; use OCP\IDBConnection; use OCP\IUserSession; use OCP\Security\ISecureRandom; +use PHPUnit\Framework\MockObject\MockObject; use Test\TestCase; class CreateEmpty extends ACreateEmpty { @@ -82,9 +82,25 @@ class ManagerTest extends TestCase { */ private $editor; /** - * @var \PHPUnit\Framework\MockObject\MockObject + * @var MockObject|ISecureRandom */ private $random; + /** + * @var IDBConnection + */ + private $connection; + /** + * @var MockObject|IUserSession + */ + private $userSession; + /** + * @var MockObject|IRootFolder + */ + private $rootFolder; + /** + * @var MockObject|Folder + */ + private $userFolder; protected function setUp() { parent::setUp(); |