Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
module/Jobs/test/JobsTest/Form/ListFilterTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
     public function testInit()
37 37
     {
38 38
         $target = $this->getMockBuilder('\Jobs\Form\ListFilter')
39
-                       ->setMethods(array('add', 'setName', 'setAttributes'))
40
-                       ->disableOriginalConstructor()
41
-                       ->getMock();
39
+                        ->setMethods(array('add', 'setName', 'setAttributes'))
40
+                        ->disableOriginalConstructor()
41
+                        ->getMock();
42 42
 
43 43
         $add1 = [
44 44
             'type'    => 'Jobs/ListFilterBaseFieldset',
@@ -49,19 +49,19 @@  discard block
 block discarded – undo
49 49
         ];
50 50
 
51 51
         $target->expects($this->exactly(2))
52
-               ->method('add')
53
-               ->withConsecutive(
54
-                   array($add1),
55
-                   array($add2)
56
-               )->will($this->returnSelf());
52
+                ->method('add')
53
+                ->withConsecutive(
54
+                    array($add1),
55
+                    array($add2)
56
+                )->will($this->returnSelf());
57 57
 
58 58
         $target->expects($this->once())->method('setName')->with('jobs-list-filter');
59 59
         $target->expects($this->once())
60 60
             ->method('setAttributes')
61 61
             ->with([
62
-                       'id' => 'jobs-list-filter',
63
-                       'data-handle-by' => 'native'
64
-                   ]);
62
+                        'id' => 'jobs-list-filter',
63
+                        'data-handle-by' => 'native'
64
+                    ]);
65 65
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilter */
66 66
         $target->init();
67 67
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterAdminTest.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -26,28 +26,28 @@  discard block
 block discarded – undo
26 26
     public function testInit()
27 27
     {
28 28
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterAdminFieldset')
29
-                       ->setMethods(array('add', 'parentInit'))
30
-                       ->disableOriginalConstructor()
31
-                       ->getMock();
29
+                        ->setMethods(array('add', 'parentInit'))
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
 
33 33
         $add1 = ['type'       => 'Select',
34
-                 'name'       => 'status',
35
-                 'options'    => array(
36
-                     'value_options' => array(
37
-                         'all' => 'All',
38
-                         Status::ACTIVE => 'Active',
39
-                         Status::INACTIVE => 'Inactive',
40
-                         Status::CREATED => 'Created',
41
-                         Status::PUBLISH => 'Published',
42
-                         Status::REJECTED => 'Rejected',
43
-                         Status::EXPIRED =>  'Expired',
44
-                     )
45
-                 ),
46
-                 'attributes' => array(
47
-                     'value' => Status::CREATED,
48
-                     'data-searchbox'  => -1,  // hide the search box
49
-                     'data-allowclear' => 'false', // allow to clear a selected value
50
-                 )
34
+                    'name'       => 'status',
35
+                    'options'    => array(
36
+                        'value_options' => array(
37
+                            'all' => 'All',
38
+                            Status::ACTIVE => 'Active',
39
+                            Status::INACTIVE => 'Inactive',
40
+                            Status::CREATED => 'Created',
41
+                            Status::PUBLISH => 'Published',
42
+                            Status::REJECTED => 'Rejected',
43
+                            Status::EXPIRED =>  'Expired',
44
+                        )
45
+                    ),
46
+                    'attributes' => array(
47
+                        'value' => Status::CREATED,
48
+                        'data-searchbox'  => -1,  // hide the search box
49
+                        'data-allowclear' => 'false', // allow to clear a selected value
50
+                    )
51 51
         ];
52 52
 
53 53
         $add2 = [
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
         ];
64 64
 
65 65
         $target->expects($this->exactly(2))
66
-               ->method('add')
67
-               ->withConsecutive(
68
-                   [$add1],
69
-                   [$add2]
70
-               )->will($this->returnSelf());
66
+                ->method('add')
67
+                ->withConsecutive(
68
+                    [$add1],
69
+                    [$add2]
70
+                )->will($this->returnSelf());
71 71
 
72 72
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
73 73
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterBaseTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
     public function testInit()
27 27
     {
28 28
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterBaseFieldset')
29
-                       ->setMethods(array('add', 'setName'))
30
-                       ->disableOriginalConstructor()
31
-                       ->getMock();
29
+                        ->setMethods(array('add', 'setName'))
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
 
33 33
         $add1 = ['type' => 'Hidden',
34
-                 'name' => 'page',
35
-                 'attributes' => ['value' => 1,]
34
+                    'name' => 'page',
35
+                    'attributes' => ['value' => 1,]
36 36
         ];
37 37
 
38 38
         $add2 = [
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
         ];
44 44
 
45 45
         $target->expects($this->exactly(2))
46
-               ->method('add')
47
-               ->withConsecutive(
48
-                   [$add1],
49
-                   [$add2]
50
-               )->will($this->returnSelf());
46
+                ->method('add')
47
+                ->withConsecutive(
48
+                    [$add1],
49
+                    [$add2]
50
+                )->will($this->returnSelf());
51 51
 
52 52
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
53 53
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/InputFilter/AtsModeTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,9 +146,9 @@
 block discarded – undo
146 146
     {
147 147
         /* @var $target AtsMode|\PHPUnit_Framework_MockObject_MockObject */
148 148
         $target = $this->getMockBuilder('\Jobs\Form\InputFilter\AtsMode')
149
-                       ->disableOriginalConstructor()
150
-                       ->setMethods(array('add', 'populate'))
151
-                       ->getMock();
149
+                        ->disableOriginalConstructor()
150
+                        ->setMethods(array('add', 'populate'))
151
+                        ->getMock();
152 152
 
153 153
         $add = $target->expects($this->exactly(count($expectedSpec)))
154 154
             ->method('add');
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterLocationTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
     public function testInit()
26 26
     {
27 27
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterLocationFieldset')
28
-                       ->setMethods(array('add', 'parentInit'))
29
-                       ->disableOriginalConstructor()
30
-                       ->getMock();
28
+                        ->setMethods(array('add', 'parentInit'))
29
+                        ->disableOriginalConstructor()
30
+                        ->getMock();
31 31
 
32 32
         $add1 = [
33 33
             'name'    => 'l',
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
         ];
62 62
 
63 63
         $target->expects($this->exactly(2))
64
-               ->method('add')
65
-               ->withConsecutive(
66
-                   [$add1],
67
-                   [$add2]
68
-               )->will($this->returnSelf());
64
+                ->method('add')
65
+                ->withConsecutive(
66
+                    [$add1],
67
+                    [$add2]
68
+                )->will($this->returnSelf());
69 69
 
70 70
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
71 71
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/GetOrganizationManagersTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 
108 108
         $wf = new WorkflowSettings();
109 109
         $wf->setAcceptApplicationByDepartmentManager($flag('acceptApplication'))
110
-           ->setAssignDepartmentManagersToJobs($flag('assignManagers'));
110
+            ->setAssignDepartmentManagersToJobs($flag('assignManagers'));
111 111
 
112 112
         $org->expects($this->once())->method('getWorkflowSettings')->willReturn($wf);
113 113
 
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Controller/RegisterControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
 
53 53
 
54 54
         $this->serviceMock = $this->getMockBuilder('Auth\Service\Register')
55
-                                  ->disableOriginalConstructor()
56
-                                  ->getMock();
55
+                                    ->disableOriginalConstructor()
56
+                                    ->getMock();
57 57
 
58 58
 
59 59
         $this->paramsMock = $this->getMockBuilder('Zend\Mvc\Controller\Plugin\Params')
Please login to merge, or discard this patch.
Auth/test/AuthTest/Listener/SocialProfilesUnconfiguredErrorListenerTest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 
41 41
         $events = $this->getMockBuilder('\Zend\EventManager\EventManager')->disableOriginalConstructor()->getMock();
42 42
         $events->expects($this->once())
43
-               ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ])
44
-               ->willReturn('worked');
43
+                ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ])
44
+                ->willReturn('worked');
45 45
 
46 46
         $this->assertSame($target, $target->attach($events), 'Fluent interface broken');
47 47
         $this->assertAttributeEquals(['worked'], 'listeners', $target);
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
     public function provideTestData()
51 51
     {
52 52
         return [
53
-           [ true, true, true, true ],
54
-           [ false, true, true, false ],
55
-           [ true, false, true, false ],
56
-           [ true, true, false, false ],
57
-           [ false, false, true, false ],
58
-           [ false, true, false, false ],
59
-           [ true, false, false, false ],
60
-           [ false, false, false, false ],
61
-       ];
53
+            [ true, true, true, true ],
54
+            [ false, true, true, false ],
55
+            [ true, false, true, false ],
56
+            [ true, true, false, false ],
57
+            [ false, false, true, false ],
58
+            [ false, true, false, false ],
59
+            [ true, false, false, false ],
60
+            [ false, false, false, false ],
61
+        ];
62 62
     }
63 63
 
64 64
     /**
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
         $event = $this->getMockBuilder('\Zend\Mvc\MvcEvent')->disableOriginalConstructor()->getMock();
79 79
 
80 80
         $event->expects($this->once())
81
-              ->method('getParam')->with('exception')
82
-              ->willReturn($exception);
81
+                ->method('getParam')->with('exception')
82
+                ->willReturn($exception);
83 83
 
84 84
         if ($useValidModel) {
85 85
             $model = $this->getMockBuilder('\Zend\View\Model\ViewModel')->disableOriginalConstructor()->getMock();
@@ -89,16 +89,16 @@  discard block
 block discarded – undo
89 89
                 $model->expects($this->never())->method('setTemplate');
90 90
             }
91 91
             $event->expects($this->once())
92
-                  ->method('getError')
93
-                  ->willReturn($useValidError ? Application::ERROR_EXCEPTION : 'NotMatchError');
92
+                    ->method('getError')
93
+                    ->willReturn($useValidError ? Application::ERROR_EXCEPTION : 'NotMatchError');
94 94
         } else {
95 95
             $model = 'not a view model instance';
96 96
             $event->expects($this->never())->method('getError');
97 97
         }
98 98
 
99 99
         $event->expects($this->once())
100
-              ->method('getResult')
101
-              ->willReturn($model);
100
+                ->method('getResult')
101
+                ->willReturn($model);
102 102
 
103 103
         $target->onDispatchError($event);
104 104
     }
Please login to merge, or discard this patch.
module/Install/test/TestConfig.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     //     ),
59 59
     // )
60 60
 
61
-   // Initial configuration with which to seed the ServiceManager.
62
-   // Should be compatible with Zend\ServiceManager\Config.
63
-   // 'service_manager' => array(),
61
+    // Initial configuration with which to seed the ServiceManager.
62
+    // Should be compatible with Zend\ServiceManager\Config.
63
+    // 'service_manager' => array(),
64 64
 );
65 65
\ No newline at end of file
Please login to merge, or discard this patch.