@@ -25,9 +25,9 @@ discard block |
||
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 |
||
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(); |
@@ -107,7 +107,7 @@ |
||
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 |
@@ -52,8 +52,8 @@ |
||
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') |
@@ -40,8 +40,8 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -58,7 +58,7 @@ |
||
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 |
@@ -99,8 +99,8 @@ |
||
99 | 99 | $application->expects($this->once())->method('getServiceManager')->willReturn($services); |
100 | 100 | |
101 | 101 | $event = $this->getMockBuilder('\Zend\Mvc\MvcEvent') |
102 | - ->disableOriginalConstructor() |
|
103 | - ->getMock(); |
|
102 | + ->disableOriginalConstructor() |
|
103 | + ->getMock(); |
|
104 | 104 | |
105 | 105 | $event->expects($this->once())->method('getApplication')->willReturn($application); |
106 | 106 |
@@ -84,15 +84,15 @@ |
||
84 | 84 | ]; |
85 | 85 | |
86 | 86 | $add3 = ['type' => 'ToggleButton', |
87 | - 'name' => 'unread', |
|
88 | - 'options' => [ |
|
89 | - 'checked_value' => '1', |
|
90 | - 'unchecked_value' => '0', |
|
91 | - 'label' => 'unread', |
|
92 | - ], |
|
93 | - 'attributes' => [ |
|
94 | - 'data-submit-on-change' => 'true', |
|
95 | - ] |
|
87 | + 'name' => 'unread', |
|
88 | + 'options' => [ |
|
89 | + 'checked_value' => '1', |
|
90 | + 'unchecked_value' => '0', |
|
91 | + 'label' => 'unread', |
|
92 | + ], |
|
93 | + 'attributes' => [ |
|
94 | + 'data-submit-on-change' => 'true', |
|
95 | + ] |
|
96 | 96 | ]; |
97 | 97 | |
98 | 98 | /** @noinspection PhpUndefinedMethodInspection */ |
@@ -70,13 +70,13 @@ |
||
70 | 70 | $app = new Application(); |
71 | 71 | $app2 = new Application(); |
72 | 72 | $app2->getPermissions()->grant($user, PermissionsInterface::PERMISSION_VIEW) |
73 | - ->grant($user2, PermissionsInterface::PERMISSION_CHANGE); |
|
73 | + ->grant($user2, PermissionsInterface::PERMISSION_CHANGE); |
|
74 | 74 | |
75 | 75 | $app3 = new Application(); |
76 | 76 | $app3->setIsDraft(true); |
77 | 77 | //$app3->setUser($user); |
78 | 78 | $app3->getPermissions()->grant($user, PermissionsInterface::PERMISSION_VIEW) |
79 | - ->grant($user2, PermissionsInterface::PERMISSION_CHANGE); |
|
79 | + ->grant($user2, PermissionsInterface::PERMISSION_CHANGE); |
|
80 | 80 | |
81 | 81 | return array( |
82 | 82 | 'nouser-noapp' => array($role, $resource, null, false), |
@@ -60,7 +60,7 @@ |
||
60 | 60 | // ), |
61 | 61 | // ) |
62 | 62 | |
63 | - // Initial configuration with which to seed the ServiceManager. |
|
64 | - // Should be compatible with Zend\ServiceManager\Config. |
|
65 | - // 'service_manager' => array(), |
|
63 | + // Initial configuration with which to seed the ServiceManager. |
|
64 | + // Should be compatible with Zend\ServiceManager\Config. |
|
65 | + // 'service_manager' => array(), |
|
66 | 66 | ); |