@@ -64,7 +64,7 @@ |
||
64 | 64 | // ), |
65 | 65 | // ) |
66 | 66 | |
67 | - // Initial configuration with which to seed the ServiceManager. |
|
68 | - // Should be compatible with Laminas\ServiceManager\Config. |
|
69 | - // 'service_manager' => array(), |
|
67 | + // Initial configuration with which to seed the ServiceManager. |
|
68 | + // Should be compatible with Laminas\ServiceManager\Config. |
|
69 | + // 'service_manager' => array(), |
|
70 | 70 | ); |
@@ -25,8 +25,8 @@ |
||
25 | 25 | */ |
26 | 26 | class Form extends LaminasForm implements |
27 | 27 | DescriptionAwareFormInterface, |
28 | - DisableElementsCapableInterface, |
|
29 | - FormParentInterface |
|
28 | + DisableElementsCapableInterface, |
|
29 | + FormParentInterface |
|
30 | 30 | { |
31 | 31 | use EventManagerAwareTrait, HydratorStrategyAwareTrait; |
32 | 32 |
@@ -4,10 +4,10 @@ discard block |
||
4 | 4 | |
5 | 5 | use PHPUnit\Framework\TestCase; |
6 | 6 | 'modules' => array_merge( |
7 | - include_once __DIR__.'/../../../config/common.modules.php', |
|
8 | - array( |
|
7 | + include_once __DIR__.'/../../../config/common.modules.php', |
|
8 | + array( |
|
9 | 9 | 'Core', 'Auth', 'Jobs', 'Applications', 'Organizations' |
10 | - ) |
|
10 | + ) |
|
11 | 11 | ), |
12 | 12 | |
13 | 13 | // These are various options for the listeners attached to the ModuleManager |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | // ), |
66 | 66 | // ) |
67 | 67 | |
68 | - // Initial configuration with which to seed the ServiceManager. |
|
69 | - // Should be compatible with Laminas\ServiceManager\Config. |
|
70 | - // 'service_manager' => array(), |
|
68 | + // Initial configuration with which to seed the ServiceManager. |
|
69 | + // Should be compatible with Laminas\ServiceManager\Config. |
|
70 | + // 'service_manager' => array(), |
|
71 | 71 | ); |
72 | 72 | \ No newline at end of file |
@@ -76,7 +76,7 @@ |
||
76 | 76 | public function testFromHeaderMethod() |
77 | 77 | { |
78 | 78 | $headers = "X-Test-Header-1: Header1Value\r\n" |
79 | - . "X-Test-Header-2: Header2Value\r\n"; |
|
79 | + . "X-Test-Header-2: Header2Value\r\n"; |
|
80 | 80 | |
81 | 81 | $r = new Request(); |
82 | 82 | $r->setHeaders(\Laminas\Http\Headers::fromString($headers)); |
@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | public function testHandleConsoleRequests() |
52 | 52 | { |
53 | 53 | $event = $this |
54 | - ->getMockBuilder(MvcEvent::class) |
|
55 | - ->disableOriginalConstructor() |
|
56 | - ->setMethods(['getRequest', 'getError']) |
|
57 | - ->getMock() |
|
58 | - ; |
|
54 | + ->getMockBuilder(MvcEvent::class) |
|
55 | + ->disableOriginalConstructor() |
|
56 | + ->setMethods(['getRequest', 'getError']) |
|
57 | + ->getMock() |
|
58 | + ; |
|
59 | 59 | |
60 | 60 | $request = new \Laminas\Console\Request(); |
61 | 61 | |
@@ -136,8 +136,8 @@ discard block |
||
136 | 136 | $event = $this->getEventMock('/base/uri', '/see/no/lang'); |
137 | 137 | |
138 | 138 | $event->expects($this->once()) |
139 | - ->method('stopPropagation') |
|
140 | - ->with(true) |
|
139 | + ->method('stopPropagation') |
|
140 | + ->with(true) |
|
141 | 141 | ; |
142 | 142 | $response = new Response(); |
143 | 143 | $event->setResponse($response); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | Assert::assertEquals('/base/uri/xx/see/no/lang', (string) $v->getUri()); |
151 | 151 | return true; |
152 | 152 | } |
153 | - )) |
|
153 | + )) |
|
154 | 154 | ->willReturn($routeMatch) |
155 | 155 | ; |
156 | 156 |
@@ -47,17 +47,17 @@ discard block |
||
47 | 47 | $this->pluginMock = $pluginMock; |
48 | 48 | |
49 | 49 | $controller = $this->getMockBuilder('\Laminas\Mvc\Controller\AbstractController') |
50 | - ->setMethods(['getRequest', 'plugin']) |
|
51 | - ->getMockForAbstractClass(); |
|
50 | + ->setMethods(['getRequest', 'plugin']) |
|
51 | + ->getMockForAbstractClass(); |
|
52 | 52 | |
53 | 53 | $controller->expects($this->any())->method('getRequest')->willReturn($this->request); |
54 | 54 | $controller->expects($this->any())->method('plugin')->will($this->returnValueMap( |
55 | 55 | [ |
56 | - ['paginator', null, $pluginMock], |
|
57 | - ['paginationParams', null, $pluginMock], |
|
58 | - ['searchform', null, $pluginMock], |
|
59 | - ] |
|
60 | - )); |
|
56 | + ['paginator', null, $pluginMock], |
|
57 | + ['paginationParams', null, $pluginMock], |
|
58 | + ['searchform', null, $pluginMock], |
|
59 | + ] |
|
60 | + )); |
|
61 | 61 | |
62 | 62 | $this->target->setController($controller); |
63 | 63 | } |
@@ -117,10 +117,10 @@ discard block |
||
117 | 117 | |
118 | 118 | $this->assertAttributeEquals( |
119 | 119 | new Parameters([ |
120 | - 'a' => 'test', 'b' => ['test1', 'test2'], |
|
121 | - 'c' => ['test1', 'test2'], |
|
122 | - 'd' => ['test1' => 1, 'test2' => 1] |
|
123 | - ]), |
|
120 | + 'a' => 'test', 'b' => ['test1', 'test2'], |
|
121 | + 'c' => ['test1', 'test2'], |
|
122 | + 'd' => ['test1' => 1, 'test2' => 1] |
|
123 | + ]), |
|
124 | 124 | 'parameters', |
125 | 125 | $this->target |
126 | 126 | ); |
@@ -84,12 +84,12 @@ |
||
84 | 84 | )); |
85 | 85 | |
86 | 86 | $translator = $this->getMockBuilder('\Laminas\I18n\Translator\Translator') |
87 | - ->disableOriginalConstructor() |
|
88 | - ->getMock(); |
|
87 | + ->disableOriginalConstructor() |
|
88 | + ->getMock(); |
|
89 | 89 | |
90 | 90 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
91 | - ->disableOriginalConstructor() |
|
92 | - ->getMock(); |
|
91 | + ->disableOriginalConstructor() |
|
92 | + ->getMock(); |
|
93 | 93 | |
94 | 94 | |
95 | 95 | $services |
@@ -46,13 +46,13 @@ discard block |
||
46 | 46 | protected function setUp(): void |
47 | 47 | { |
48 | 48 | $this->target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory') |
49 | - ->setMethods([ 'createEventManager', 'getConfig' ]) |
|
50 | - ->getMock(); |
|
49 | + ->setMethods([ 'createEventManager', 'getConfig' ]) |
|
50 | + ->getMock(); |
|
51 | 51 | |
52 | 52 | $events = $this->getMockBuilder('\Laminas\EventManager\EventManager') |
53 | - ->disableOriginalConstructor() |
|
54 | - ->setMethods(['attach']) |
|
55 | - ->getMock(); |
|
53 | + ->disableOriginalConstructor() |
|
54 | + ->setMethods(['attach']) |
|
55 | + ->getMock(); |
|
56 | 56 | |
57 | 57 | $this->target->expects($this->once())->method('createEventManager')->willReturn($events); |
58 | 58 | $this->events = $events; |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | protected function getServiceManagerMock($listeners, $expectLazyListeners = false) |
68 | 68 | { |
69 | 69 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
70 | - ->disableOriginalConstructor() |
|
71 | - ->getMock(); |
|
70 | + ->disableOriginalConstructor() |
|
71 | + ->getMock(); |
|
72 | 72 | |
73 | 73 | |
74 | 74 | $hasMap = [ ]; |
@@ -101,8 +101,8 @@ discard block |
||
101 | 101 | ; |
102 | 102 | |
103 | 103 | $services->expects($this->exactly(count($getMap))) |
104 | - ->method('get') |
|
105 | - ->will($this->returnValueMap($getMap)) |
|
104 | + ->method('get') |
|
105 | + ->will($this->returnValueMap($getMap)) |
|
106 | 106 | ; |
107 | 107 | |
108 | 108 | return $services; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | public function testCallsAttachOnListenerAggregates() |
167 | 167 | { |
168 | 168 | $aggregateMock = $this->getMockBuilder('\Laminas\EventManager\ListenerAggregateInterface') |
169 | - ->getMockForAbstractClass(); |
|
169 | + ->getMockForAbstractClass(); |
|
170 | 170 | $aggregateMock->expects($this->exactly(2))->method('attach')->withConsecutive([ $this->events, 1], [$this->events, -100]); |
171 | 171 | |
172 | 172 | $this->setTargetListenerConfig(['TestAggregate', 'TestAggregate2' => -100]); |
@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | $this->formElementManagerMock->expects($this->never())->method('getServiceLocator'); |
86 | 86 | $instance = $this->getMockForAbstractClass('\Core\Form\HeadscriptProviderInterface'); |
87 | 87 | $instance->expects($this->exactly(2)) |
88 | - ->method('getHeadscripts') |
|
89 | - ->will($this->onConsecutiveCalls('notanarray', array())); |
|
88 | + ->method('getHeadscripts') |
|
89 | + ->will($this->onConsecutiveCalls('notanarray', array())); |
|
90 | 90 | |
91 | 91 | $this->target->initialize($instance, $this->formElementManagerMock); |
92 | 92 | $this->target->initialize($instance, $this->formElementManagerMock); |
@@ -95,14 +95,14 @@ discard block |
||
95 | 95 | public function testInjectsScriptsToTheHeadscriptViewHelper() |
96 | 96 | { |
97 | 97 | $basepath = $this->getMockBuilder('\Laminas\View\Helper\BasePath') |
98 | - ->disableOriginalConstructor()->getMock(); |
|
98 | + ->disableOriginalConstructor()->getMock(); |
|
99 | 99 | |
100 | 100 | $basepath->expects($this->any()) |
101 | - ->method('__invoke')->will($this->returnArgument(0)); |
|
101 | + ->method('__invoke')->will($this->returnArgument(0)); |
|
102 | 102 | |
103 | 103 | |
104 | 104 | $headscript = $this->getMockBuilder('\Laminas\View\Helper\HeadScript') |
105 | - ->disableOriginalConstructor()->getMock(); |
|
105 | + ->disableOriginalConstructor()->getMock(); |
|
106 | 106 | |
107 | 107 | $scripts = array('test/script.js', 'yetanother/test/script.tst'); |
108 | 108 | |
@@ -111,9 +111,9 @@ discard block |
||
111 | 111 | $this->instanceMock = $instance; |
112 | 112 | |
113 | 113 | $headscript->expects($this->exactly(2)) |
114 | - ->method('__call')->withConsecutive( |
|
115 | - array('appendFile', array($scripts[0])), |
|
116 | - array('appendFile', array($scripts[1])) |
|
114 | + ->method('__call')->withConsecutive( |
|
115 | + array('appendFile', array($scripts[0])), |
|
116 | + array('appendFile', array($scripts[1])) |
|
117 | 117 | ); |
118 | 118 | |
119 | 119 | $helpers = $this->getMockBuilder('\Laminas\View\HelperPluginManager') |
@@ -128,9 +128,9 @@ discard block |
||
128 | 128 | $services = $this->formElementManagerMock; |
129 | 129 | |
130 | 130 | $services->expects($this->exactly(1)) |
131 | - ->method('get') |
|
132 | - ->with('ViewHelperManager') |
|
133 | - ->willReturn($helpers) |
|
131 | + ->method('get') |
|
132 | + ->with('ViewHelperManager') |
|
133 | + ->willReturn($helpers) |
|
134 | 134 | ; |
135 | 135 | |
136 | 136 | $this->target->initialize($instance, $services); |