@@ -20,8 +20,8 @@ |
||
20 | 20 | public function init() |
21 | 21 | { |
22 | 22 | $this->setName('base'); |
23 | - //->setLabel( /* @translate */ 'General'); |
|
24 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
23 | + //->setLabel( /* @translate */ 'General'); |
|
24 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
25 | 25 | |
26 | 26 | |
27 | 27 | $this->add( |
@@ -194,7 +194,7 @@ |
||
194 | 194 | $qb->addOr($qb->expr()->field('info.email')->equals($regex)); |
195 | 195 | } |
196 | 196 | $qb->sort(array('info.lastName' => 1)) |
197 | - ->sort(array('info.email' => 1)); |
|
197 | + ->sort(array('info.email' => 1)); |
|
198 | 198 | |
199 | 199 | return $qb->getQuery()->execute(); |
200 | 200 | } |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | ->getMock(); |
69 | 69 | |
70 | 70 | $this->mailServiceMock = $this->getMockBuilder('Core\Mail\MailService') |
71 | - ->disableOriginalConstructor() |
|
72 | - ->getMock(); |
|
71 | + ->disableOriginalConstructor() |
|
72 | + ->getMock(); |
|
73 | 73 | |
74 | 74 | $this->mailMock = $this->getMockBuilder('\Core\Mail\HTMLTemplateMessage') |
75 | 75 | ->disableOriginalConstructor() |
@@ -188,9 +188,9 @@ discard block |
||
188 | 188 | )->willReturn($confirmationLink); |
189 | 189 | |
190 | 190 | $this->mailServiceMock->expects($this->once()) |
191 | - ->method('get') |
|
192 | - ->with('htmltemplate') |
|
193 | - ->willReturn($this->mailMock); |
|
191 | + ->method('get') |
|
192 | + ->with('htmltemplate') |
|
193 | + ->willReturn($this->mailMock); |
|
194 | 194 | |
195 | 195 | $this->testedObject->proceed($this->inputFilterMock, $this->mailerPluginMock, $this->urlPluginMock); |
196 | 196 | } |
@@ -44,12 +44,12 @@ discard block |
||
44 | 44 | public function testProxiesMethodToAuthenticationService() |
45 | 45 | { |
46 | 46 | $auth = $this->getMockBuilder('\Auth\AuthenticationService') |
47 | - ->disableOriginalConstructor() |
|
48 | - ->getMock(); |
|
47 | + ->disableOriginalConstructor() |
|
48 | + ->getMock(); |
|
49 | 49 | |
50 | 50 | $auth->expects($this->once()) |
51 | - ->method('getUser') |
|
52 | - ->willReturn(true); |
|
51 | + ->method('getUser') |
|
52 | + ->willReturn(true); |
|
53 | 53 | |
54 | 54 | $target = new AuthHelper(); |
55 | 55 | $target->setService($auth); |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | public function testThrowsExceptionIfTryingToProxyToUnknownMethod() |
66 | 66 | { |
67 | 67 | $auth = $this->getMockBuilder('\Auth\AuthenticationService') |
68 | - ->disableOriginalConstructor() |
|
69 | - ->getMock(); |
|
68 | + ->disableOriginalConstructor() |
|
69 | + ->getMock(); |
|
70 | 70 | |
71 | 71 | $target = new AuthHelper(); |
72 | 72 | $target->setService($auth); |
@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | public function testAuthenticationServiceCanBeSetAndRetrievedViaSetterAndGetterMethods() |
78 | 78 | { |
79 | 79 | $auth = $this->getMockBuilder('\Auth\AuthenticationService') |
80 | - ->disableOriginalConstructor() |
|
81 | - ->getMock(); |
|
80 | + ->disableOriginalConstructor() |
|
81 | + ->getMock(); |
|
82 | 82 | |
83 | 83 | $target = new AuthHelper(); |
84 | 84 | |
@@ -108,12 +108,12 @@ discard block |
||
108 | 108 | $user->setLogin($login); |
109 | 109 | |
110 | 110 | $auth = $this->getMockBuilder('Auth\AuthenticationService') |
111 | - ->disableOriginalConstructor() |
|
112 | - ->getMock(); |
|
111 | + ->disableOriginalConstructor() |
|
112 | + ->getMock(); |
|
113 | 113 | |
114 | 114 | $auth->expects($this->exactly(2)) |
115 | - ->method('getUser') |
|
116 | - ->willReturn($user); |
|
115 | + ->method('getUser') |
|
116 | + ->willReturn($user); |
|
117 | 117 | |
118 | 118 | $target = new AuthHelper(); |
119 | 119 | $target->setService($auth); |
@@ -125,12 +125,12 @@ discard block |
||
125 | 125 | public function testIsAbleToCheckIfAUserIsCurrentlyLoggedIn() |
126 | 126 | { |
127 | 127 | $auth = $this->getMockBuilder('Auth\AuthenticationService') |
128 | - ->disableOriginalConstructor() |
|
129 | - ->getMock(); |
|
128 | + ->disableOriginalConstructor() |
|
129 | + ->getMock(); |
|
130 | 130 | |
131 | 131 | $auth->expects($this->exactly(2)) |
132 | - ->method('hasIdentity') |
|
133 | - ->will($this->onConsecutiveCalls(true, false)); |
|
132 | + ->method('hasIdentity') |
|
133 | + ->will($this->onConsecutiveCalls(true, false)); |
|
134 | 134 | |
135 | 135 | $target = new AuthHelper(); |
136 | 136 | $target->setService($auth); |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | public function testDirectInvokationProxiesToCorrectMethod() |
45 | 45 | { |
46 | 46 | $target = $this->getMockBuilder('\Install\Controller\Plugin\Prerequisites') |
47 | - ->setMethods(array('check')) |
|
48 | - ->getMock(); |
|
47 | + ->setMethods(array('check')) |
|
48 | + ->getMock(); |
|
49 | 49 | |
50 | 50 | /* @var $target \PHPUnit_Framework_MockObject_MockObject|Prerequisites */ |
51 | 51 | $target->expects($this->once())->method('check')->willReturn(true); |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | public function testCheckCallsCheckDirectory() |
57 | 57 | { |
58 | 58 | $target = $this->getMockBuilder('\Install\Controller\Plugin\Prerequisites') |
59 | - ->setMethods(array('checkDirectory')) |
|
60 | - ->getMock(); |
|
59 | + ->setMethods(array('checkDirectory')) |
|
60 | + ->getMock(); |
|
61 | 61 | |
62 | 62 | $target->expects($this->exactly(3))->method('checkDirectory')->willReturn(array('valid' => true)); |
63 | 63 | |
@@ -108,8 +108,8 @@ discard block |
||
108 | 108 | $dirStr = implode(DIRECTORY_SEPARATOR, $dirParts); |
109 | 109 | |
110 | 110 | $target = $this->getMockBuilder('\Install\Controller\Plugin\Prerequisites') |
111 | - ->setMethods(array('validateDirectory')) |
|
112 | - ->getMock(); |
|
111 | + ->setMethods(array('validateDirectory')) |
|
112 | + ->getMock(); |
|
113 | 113 | |
114 | 114 | $expectedValidateArg = $expected; |
115 | 115 | unset($expectedValidateArg['valid']); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | // Generated by ZF2's ./bin/classmap_generator.php |
3 | 3 | return array( |
4 | - 'InstallTest\Controller\Plugin\PrerequisitesTest' => __DIR__ . '/InstallTest/Controller/Plugin/PrerequisitesTest.php', |
|
5 | - 'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__ . '/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php', |
|
6 | - 'InstallTest\Form\InstallationTest' => __DIR__ . '/InstallTest/Form/InstallationTest.php', |
|
7 | - 'InstallTest\Validator\MongoDbConnectionStringTest' => __DIR__ . '/InstallTest/Validator/MongoDbConnectionStringTest.php', |
|
4 | + 'InstallTest\Controller\Plugin\PrerequisitesTest' => __DIR__ . '/InstallTest/Controller/Plugin/PrerequisitesTest.php', |
|
5 | + 'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__ . '/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php', |
|
6 | + 'InstallTest\Form\InstallationTest' => __DIR__ . '/InstallTest/Form/InstallationTest.php', |
|
7 | + 'InstallTest\Validator\MongoDbConnectionStringTest' => __DIR__ . '/InstallTest/Validator/MongoDbConnectionStringTest.php', |
|
8 | 8 | ); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * Gets the Day of the date of birth |
31 | 31 | * |
32 | 32 | * @return string |
33 | - */ |
|
33 | + */ |
|
34 | 34 | public function getBirthDay(); |
35 | 35 | |
36 | 36 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * Gets the month of the date of birth |
45 | 45 | * |
46 | 46 | * @return string |
47 | - */ |
|
47 | + */ |
|
48 | 48 | public function getBirthMonth(); |
49 | 49 | |
50 | 50 | /** |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Gets the Year of the date of birth. |
59 | 59 | * |
60 | 60 | * @return string |
61 | - */ |
|
61 | + */ |
|
62 | 62 | public function getBirthYear(); |
63 | 63 | |
64 | 64 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * Gets the gender |
112 | 112 | * |
113 | 113 | * @return string |
114 | - */ |
|
114 | + */ |
|
115 | 115 | public function getGender(); |
116 | 116 | |
117 | 117 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * Gets the users street |
155 | 155 | * |
156 | 156 | * @return string |
157 | - */ |
|
157 | + */ |
|
158 | 158 | public function getStreet(); |
159 | 159 | |
160 | 160 | /** |
@@ -28,9 +28,9 @@ discard block |
||
28 | 28 | public function init() |
29 | 29 | { |
30 | 30 | $this->setName('data') |
31 | - ->setLabel('Group data') |
|
32 | - ->setUseAsBaseFieldset(true) |
|
33 | - ->setHydrator(new EntityHydrator()); |
|
31 | + ->setLabel('Group data') |
|
32 | + ->setUseAsBaseFieldset(true) |
|
33 | + ->setHydrator(new EntityHydrator()); |
|
34 | 34 | |
35 | 35 | $this->add( |
36 | 36 | array( |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | 'required' => true, |
70 | 70 | 'validators' => array( |
71 | 71 | array('name' => 'Auth/Form/UniqueGroupName', |
72 | - 'options' => array( |
|
72 | + 'options' => array( |
|
73 | 73 | 'allowName' => 'edit' == $this->getOption('mode') |
74 | 74 | ? $this->getObject()->getName() |
75 | 75 | : null |
@@ -93,8 +93,8 @@ |
||
93 | 93 | // Create a file with the class/file map. |
94 | 94 | // Stupid syntax highlighters make separating < from PHP declaration necessary |
95 | 95 | $content = '<' . "?php\n" |
96 | - . "\n" |
|
97 | - . 'return ' . var_export($config, true) . ';'; |
|
96 | + . "\n" |
|
97 | + . 'return ' . var_export($config, true) . ';'; |
|
98 | 98 | |
99 | 99 | // Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op |
100 | 100 | $content = str_replace("\\'", "'", $content); |