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

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2020-04-10 14:20:16 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2020-04-10 14:45:54 +0300
commitb49c85b1e98d89f30608ff92b11f6b8d37603b97 (patch)
tree664bdd963e1b51238ff39badebc0b6e815c2066e /tests
parente8213d582c76f0dc721d4e4b0b60d402c5c67212 (diff)
Apply php-cs-fixer fixes
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/integration/AppInfo/ApplicationTest.php1
-rw-r--r--tests/php/unit/Controller/CollectionsControllerTest.php1
-rw-r--r--tests/php/unit/Controller/PageControllerTest.php1
-rw-r--r--tests/php/unit/Controller/SettingsControllerTest.php1
-rw-r--r--tests/php/unit/Service/CollectionsServiceTest.php29
-rw-r--r--tests/php/unit/Service/SettingsServiceTest.php1
6 files changed, 14 insertions, 20 deletions
diff --git a/tests/php/integration/AppInfo/ApplicationTest.php b/tests/php/integration/AppInfo/ApplicationTest.php
index e1447fb1..a78fb33b 100644
--- a/tests/php/integration/AppInfo/ApplicationTest.php
+++ b/tests/php/integration/AppInfo/ApplicationTest.php
@@ -23,7 +23,6 @@
*
*/
-use OCP\AppFramework\App;
use PHPUnit\Framework\TestCase;
class AppTest extends TestCase {
diff --git a/tests/php/unit/Controller/CollectionsControllerTest.php b/tests/php/unit/Controller/CollectionsControllerTest.php
index 046bceac..bfcdde70 100644
--- a/tests/php/unit/Controller/CollectionsControllerTest.php
+++ b/tests/php/unit/Controller/CollectionsControllerTest.php
@@ -28,7 +28,6 @@ use OCP\IRequest;
use PHPUnit\Framework\TestCase;
-
class CollectionsControllerTest extends TestCase {
private $appName;
diff --git a/tests/php/unit/Controller/PageControllerTest.php b/tests/php/unit/Controller/PageControllerTest.php
index e74a934f..a6dba9fe 100644
--- a/tests/php/unit/Controller/PageControllerTest.php
+++ b/tests/php/unit/Controller/PageControllerTest.php
@@ -14,7 +14,6 @@ namespace OCA\Tasks\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use PHPUnit\Framework\TestCase as Base;
-
class PageControllerTest extends Base {
private $controller;
diff --git a/tests/php/unit/Controller/SettingsControllerTest.php b/tests/php/unit/Controller/SettingsControllerTest.php
index 4a534bea..7e9c99c8 100644
--- a/tests/php/unit/Controller/SettingsControllerTest.php
+++ b/tests/php/unit/Controller/SettingsControllerTest.php
@@ -28,7 +28,6 @@ use OCP\IRequest;
use PHPUnit\Framework\TestCase;
-
class SettingsControllerTest extends TestCase {
private $appName;
diff --git a/tests/php/unit/Service/CollectionsServiceTest.php b/tests/php/unit/Service/CollectionsServiceTest.php
index 3348e06c..eef7ef6c 100644
--- a/tests/php/unit/Service/CollectionsServiceTest.php
+++ b/tests/php/unit/Service/CollectionsServiceTest.php
@@ -28,7 +28,6 @@ use OCP\IL10N;
use PHPUnit\Framework\TestCase;
-
class CollectionsServiceTest extends TestCase {
private $collectionsService;
@@ -56,38 +55,38 @@ class CollectionsServiceTest extends TestCase {
}
public function testGetAll() {
- $return = array(
- array(
+ $return = [
+ [
'id' => "starred",
'displayName' => 'Important',
'show' => 2,
- 'icon' => 'sprt-task-star'),
- array(
+ 'icon' => 'sprt-task-star'],
+ [
'id' => "today",
'displayName' => 'Today',
'show' => 2,
- 'icon' => 'sprt-calendar'),
- array(
+ 'icon' => 'sprt-calendar'],
+ [
'id' => "week",
'displayName' => 'Week',
'show' => 2,
- 'icon' => 'sprt-calendar'),
- array(
+ 'icon' => 'sprt-calendar'],
+ [
'id' => "all",
'displayName' => 'All',
'show' => 2,
- 'icon' => 'sprt-all'),
- array(
+ 'icon' => 'sprt-all'],
+ [
'id' => "current",
'displayName' => 'Current',
'show' => 2,
- 'icon' => 'sprt-current'),
- array(
+ 'icon' => 'sprt-current'],
+ [
'id' => "completed",
'displayName' => 'Completed',
'show' => 2,
- 'icon' => 'sprt-checkmark')
- );
+ 'icon' => 'sprt-checkmark']
+ ];
$map = [
['Important', [],'Important'],
diff --git a/tests/php/unit/Service/SettingsServiceTest.php b/tests/php/unit/Service/SettingsServiceTest.php
index ce4878f1..36ffa5f6 100644
--- a/tests/php/unit/Service/SettingsServiceTest.php
+++ b/tests/php/unit/Service/SettingsServiceTest.php
@@ -27,7 +27,6 @@ use OCP\IConfig;
use PHPUnit\Framework\TestCase;
-
class SettingsServiceTest extends TestCase {
private $settingsService;