@@ -9,8 +9,8 @@ |
||
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'); |
@@ -19,7 +19,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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') |