Completed
Branch test-environment (ae587d)
by Julius
02:23
created
tests/bootstrap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
  * @copyright jus 2016
10 10
  */
11 11
 
12
-require_once __DIR__ . '/../../../tests/bootstrap.php';
13
-require_once __DIR__ . '/../appinfo/autoload.php';
12
+require_once __DIR__.'/../../../tests/bootstrap.php';
13
+require_once __DIR__.'/../appinfo/autoload.php';
14 14
 
15
-\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
15
+\OC::$loader->addValidRoot(OC::$SERVERROOT.'/tests');
16 16
 \OC_App::loadApp('apporder');
Please login to merge, or discard this patch.
tests/unit/controller/SettingsControllerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
   private $appName;
20 20
   private $controller;
21 21
   private $config;
22
-  public function setUp (){
22
+  public function setUp() {
23 23
 
24 24
     parent::setUp();
25 25
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     $this->service = $this->getMockBuilder('\OCA\AppOrder\Service\ConfigService')
35 35
       ->disableOriginalConstructor()
36 36
       ->getMock();
37
-    $this->navigationManager = $this->getMockBuilder('\OCP\INavigationManager')->setMethods(['getAll','add','setActiveEntry'])
37
+    $this->navigationManager = $this->getMockBuilder('\OCP\INavigationManager')->setMethods(['getAll', 'add', 'setActiveEntry'])
38 38
       ->disableOriginalConstructor()
39 39
       ->getMock();
40 40
     $this->userId = 'admin';
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
   }
102 102
 
103 103
   public function testGetAppOrder() {
104
-    $nav_system= ['/app/calendar/', '/app/tasks/'];
104
+    $nav_system = ['/app/calendar/', '/app/tasks/'];
105 105
     $nav_user = ['/app/files/', '/app/calendar/', '/app/tasks/'];
106 106
     $this->service->expects($this->once())
107 107
       ->method('getAppValue')
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     $this->assertEquals(json_encode($nav_user), $result);
116 116
   }
117 117
   public function testGetAppOrderNoUser() {
118
-    $nav_system= ['/app/calendar/', '/app/tasks/'];
118
+    $nav_system = ['/app/calendar/', '/app/tasks/'];
119 119
     $nav_user = '';
120 120
     $this->service->expects($this->once())
121 121
       ->method('getAppValue')
Please login to merge, or discard this patch.