summaryrefslogtreecommitdiffstats
path: root/tests/lib/User
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-21 16:40:38 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 13:34:41 +0100
commitc007ca624f4a95e1a491221d425fcb2fa6e5589a (patch)
treeb60aa133b438eb116ac3579283aa8a7967efd12b /tests/lib/User
parente0f32814e33f9ebb8c42744611048cbfac1eb588 (diff)
downloadnextcloud-server-c007ca624f4a95e1a491221d425fcb2fa6e5589a.tar.gz
nextcloud-server-c007ca624f4a95e1a491221d425fcb2fa6e5589a.zip
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/User')
-rw-r--r--tests/lib/User/DatabaseTest.php4
-rw-r--r--tests/lib/User/Dummy.php2
-rw-r--r--tests/lib/User/ManagerTest.php2
-rw-r--r--tests/lib/User/SessionTest.php2
-rw-r--r--tests/lib/User/UserTest.php2
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/User/DatabaseTest.php b/tests/lib/User/DatabaseTest.php
index 8e52be50c75..202a8225f94 100644
--- a/tests/lib/User/DatabaseTest.php
+++ b/tests/lib/User/DatabaseTest.php
@@ -47,7 +47,7 @@ class DatabaseTest extends Backend {
return $user;
}
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
@@ -55,7 +55,7 @@ class DatabaseTest extends Backend {
$this->backend=new \OC\User\Database($this->eventDispatcher);
}
- protected function tearDown() {
+ protected function tearDown(): void {
if(!isset($this->users)) {
return;
}
diff --git a/tests/lib/User/Dummy.php b/tests/lib/User/Dummy.php
index 50382aa8fe6..7eb5cc41ba8 100644
--- a/tests/lib/User/Dummy.php
+++ b/tests/lib/User/Dummy.php
@@ -23,7 +23,7 @@
namespace Test\User;
class Dummy extends Backend {
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->backend=new \Test\Util\User\Dummy();
}
diff --git a/tests/lib/User/ManagerTest.php b/tests/lib/User/ManagerTest.php
index b99d499b2a8..4d70e30273a 100644
--- a/tests/lib/User/ManagerTest.php
+++ b/tests/lib/User/ManagerTest.php
@@ -30,7 +30,7 @@ class ManagerTest extends TestCase {
/** @var EventDispatcherInterface */
private $dispatcher;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);
diff --git a/tests/lib/User/SessionTest.php b/tests/lib/User/SessionTest.php
index a37181c504c..a9d466e5408 100644
--- a/tests/lib/User/SessionTest.php
+++ b/tests/lib/User/SessionTest.php
@@ -61,7 +61,7 @@ class SessionTest extends \Test\TestCase {
/** @var IEventDispatcher|MockObject */
private $dispatcher;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->timeFactory = $this->createMock(ITimeFactory::class);
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php
index a800e790370..b4964e28206 100644
--- a/tests/lib/User/UserTest.php
+++ b/tests/lib/User/UserTest.php
@@ -33,7 +33,7 @@ class UserTest extends TestCase {
/** @var EventDispatcherInterface|MockObject */
protected $dispatcher;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->dispatcher = $this->createMock(EventDispatcherInterface::class);
}