From c007ca624f4a95e1a491221d425fcb2fa6e5589a Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 21 Nov 2019 16:40:38 +0100 Subject: Make phpunit8 compatible Signed-off-by: Roeland Jago Douma --- apps/workflowengine/tests/Check/RequestRemoteAddressTest.php | 2 +- apps/workflowengine/tests/Check/RequestTimeTest.php | 2 +- apps/workflowengine/tests/Check/RequestUserAgentTest.php | 2 +- apps/workflowengine/tests/ManagerTest.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/workflowengine') diff --git a/apps/workflowengine/tests/Check/RequestRemoteAddressTest.php b/apps/workflowengine/tests/Check/RequestRemoteAddressTest.php index 9e313122a1f..c986a2daab5 100644 --- a/apps/workflowengine/tests/Check/RequestRemoteAddressTest.php +++ b/apps/workflowengine/tests/Check/RequestRemoteAddressTest.php @@ -44,7 +44,7 @@ class RequestRemoteAddressTest extends \Test\TestCase { return $l; } - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->request = $this->getMockBuilder(IRequest::class) diff --git a/apps/workflowengine/tests/Check/RequestTimeTest.php b/apps/workflowengine/tests/Check/RequestTimeTest.php index 519b5112f3f..d8628b7c6f8 100644 --- a/apps/workflowengine/tests/Check/RequestTimeTest.php +++ b/apps/workflowengine/tests/Check/RequestTimeTest.php @@ -43,7 +43,7 @@ class RequestTimeTest extends \Test\TestCase { return $l; } - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->timeFactory = $this->getMockBuilder('OCP\AppFramework\Utility\ITimeFactory') diff --git a/apps/workflowengine/tests/Check/RequestUserAgentTest.php b/apps/workflowengine/tests/Check/RequestUserAgentTest.php index fe9da844ccc..79e3de44874 100644 --- a/apps/workflowengine/tests/Check/RequestUserAgentTest.php +++ b/apps/workflowengine/tests/Check/RequestUserAgentTest.php @@ -34,7 +34,7 @@ class RequestUserAgentTest extends TestCase { /** @var RequestUserAgent */ protected $check; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->request = $this->createMock(IRequest::class); diff --git a/apps/workflowengine/tests/ManagerTest.php b/apps/workflowengine/tests/ManagerTest.php index 92111a6989b..0f142e642ed 100644 --- a/apps/workflowengine/tests/ManagerTest.php +++ b/apps/workflowengine/tests/ManagerTest.php @@ -64,7 +64,7 @@ class ManagerTest extends TestCase { /** @var MockObject|L10N */ protected $l; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->db = \OC::$server->getDatabaseConnection(); @@ -91,7 +91,7 @@ class ManagerTest extends TestCase { $this->clearTables(); } - protected function tearDown() { + protected function tearDown(): void { $this->clearTables(); parent::tearDown(); } -- cgit v1.2.3