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

github.com/juliushaertl/apporder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2016-05-27 10:23:55 +0300
committerScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2016-05-27 10:23:55 +0300
commit42daf4c6b3e22dd38e7db76f9c02e622f1a67b91 (patch)
treeb4516b2ddfdf52627d914e9fd6bdcda9eae717b7 /tests
parent6e9cc9cfed3e5a520ff82d6f493e0aaa36a835d5 (diff)
Scrutinizer Auto-Fixesscrutinizer-patch-1
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'tests')
-rw-r--r--tests/bootstrap.php6
-rw-r--r--tests/unit/controller/SettingsControllerTest.php8
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 30a94f3..2249de2 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -9,8 +9,8 @@
* @copyright jus 2016
*/
-require_once __DIR__ . '/../../../tests/bootstrap.php';
-require_once __DIR__ . '/../appinfo/autoload.php';
+require_once __DIR__.'/../../../tests/bootstrap.php';
+require_once __DIR__.'/../appinfo/autoload.php';
-\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
+\OC::$loader->addValidRoot(OC::$SERVERROOT.'/tests');
\OC_App::loadApp('apporder');
diff --git a/tests/unit/controller/SettingsControllerTest.php b/tests/unit/controller/SettingsControllerTest.php
index c4b8847..951246b 100644
--- a/tests/unit/controller/SettingsControllerTest.php
+++ b/tests/unit/controller/SettingsControllerTest.php
@@ -19,7 +19,7 @@ class SettingsControllerTest extends \Test\TestCase {
private $appName;
private $controller;
private $config;
- public function setUp (){
+ public function setUp() {
parent::setUp();
@@ -34,7 +34,7 @@ class SettingsControllerTest extends \Test\TestCase {
$this->service = $this->getMockBuilder('\OCA\AppOrder\Service\ConfigService')
->disableOriginalConstructor()
->getMock();
- $this->navigationManager = $this->getMockBuilder('\OCP\INavigationManager')->setMethods(['getAll','add','setActiveEntry'])
+ $this->navigationManager = $this->getMockBuilder('\OCP\INavigationManager')->setMethods(['getAll', 'add', 'setActiveEntry'])
->disableOriginalConstructor()
->getMock();
$this->userId = 'admin';
@@ -91,7 +91,7 @@ class SettingsControllerTest extends \Test\TestCase {
}
public function testGetAppOrder() {
- $nav_system= ['/app/calendar/', '/app/tasks/'];
+ $nav_system = ['/app/calendar/', '/app/tasks/'];
$nav_user = ['/app/files/', '/app/calendar/', '/app/tasks/'];
$this->service->expects($this->once())
->method('getAppValue')
@@ -105,7 +105,7 @@ class SettingsControllerTest extends \Test\TestCase {
$this->assertEquals(json_encode($nav_user), $result);
}
public function testGetAppOrderNoUser() {
- $nav_system= ['/app/calendar/', '/app/tasks/'];
+ $nav_system = ['/app/calendar/', '/app/tasks/'];
$nav_user = '';
$this->service->expects($this->once())
->method('getAppValue')