Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_retention.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-12-05 15:18:43 +0300
committerJoas Schilling <coding@schilljs.com>2019-12-05 15:18:43 +0300
commitddc223d860111e87800a9426b94fde5455f2dfac (patch)
treed254c800cd0fac47980058c5a355aa192776afcd /tests
parentc28ac25e7cb7aa0499c31d3387974be279ad0f4d (diff)
Update master php testing versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/BackgroundJob/RetentionJobTest.php4
-rw-r--r--tests/lib/Contoller/APIControllerTest.php4
-rw-r--r--tests/lib/EventListenerTest.php4
-rw-r--r--tests/lib/Settings/AdminTest.php2
4 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/BackgroundJob/RetentionJobTest.php b/tests/lib/BackgroundJob/RetentionJobTest.php
index 483e2fb..46cc31b 100644
--- a/tests/lib/BackgroundJob/RetentionJobTest.php
+++ b/tests/lib/BackgroundJob/RetentionJobTest.php
@@ -72,7 +72,7 @@ class RetentionJobTest extends TestCase {
/** @var int */
private $timestampbase;
- public function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->timestampbase = 1000000000;
@@ -99,7 +99,7 @@ class RetentionJobTest extends TestCase {
);
}
- public function tearDown() {
+ protected function tearDown(): void {
$qb = $this->db->getQueryBuilder();
$qb->delete('retention');
$qb->execute();
diff --git a/tests/lib/Contoller/APIControllerTest.php b/tests/lib/Contoller/APIControllerTest.php
index 086d530..613848c 100644
--- a/tests/lib/Contoller/APIControllerTest.php
+++ b/tests/lib/Contoller/APIControllerTest.php
@@ -57,7 +57,7 @@ class APIControllerTest extends \Test\TestCase {
/** @var APIController */
private $api;
- public function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->request = $this->createMock(IRequest::class);
@@ -74,7 +74,7 @@ class APIControllerTest extends \Test\TestCase {
);
}
- public function tearDown() {
+ protected function tearDown(): void {
$qb = $this->db->getQueryBuilder();
$qb->delete('retention');
$qb->execute();
diff --git a/tests/lib/EventListenerTest.php b/tests/lib/EventListenerTest.php
index 20bfb9f..6b0ec73 100644
--- a/tests/lib/EventListenerTest.php
+++ b/tests/lib/EventListenerTest.php
@@ -46,7 +46,7 @@ class EventListenerTest extends \Test\TestCase {
/** @var ISystemTagManager */
private $tagManager;
- public function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->db = \OC::$server->getDatabaseConnection();
@@ -57,7 +57,7 @@ class EventListenerTest extends \Test\TestCase {
$app->registerEventListener();
}
- public function tearDown() {
+ protected function tearDown(): void {
// Clear retention DB
$qb = $this->db->getQueryBuilder();
$qb->delete('retention');
diff --git a/tests/lib/Settings/AdminTest.php b/tests/lib/Settings/AdminTest.php
index c4e0a24..dce0d10 100644
--- a/tests/lib/Settings/AdminTest.php
+++ b/tests/lib/Settings/AdminTest.php
@@ -30,7 +30,7 @@ class AdminTest extends TestCase {
/** @var Admin */
private $admin;
- public function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->admin = new Admin();