Skip to content

Commit 60a24d6

Browse files
committed
move test methods to test case class
1 parent 76caf15 commit 60a24d6

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

Tests/Controller/ControllerTest.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -181,34 +181,6 @@ public function testIsCsrfTokenValid()
181181

182182
$this->assertTrue($controller->isCsrfTokenValid('foo', 'bar'));
183183
}
184-
}
185-
186-
class TestController extends Controller
187-
{
188-
public function forward($controller, array $path = array(), array $query = array())
189-
{
190-
return parent::forward($controller, $path, $query);
191-
}
192-
193-
public function getUser()
194-
{
195-
return parent::getUser();
196-
}
197-
198-
public function redirectToRoute($route, array $parameters = array(), $status = 302)
199-
{
200-
return parent::redirectToRoute($route, $parameters, $status);
201-
}
202-
203-
public function addFlash($type, $message)
204-
{
205-
parent::addFlash($type, $message);
206-
}
207-
208-
public function isCsrfTokenValid($id, $token)
209-
{
210-
return parent::isCsrfTokenValid($id, $token);
211-
}
212184

213185
public function testGenerateUrl()
214186
{
@@ -328,3 +300,31 @@ public function testGetDoctrine()
328300
$this->assertEquals($doctrine, $controller->getDoctrine());
329301
}
330302
}
303+
304+
class TestController extends Controller
305+
{
306+
public function forward($controller, array $path = array(), array $query = array())
307+
{
308+
return parent::forward($controller, $path, $query);
309+
}
310+
311+
public function getUser()
312+
{
313+
return parent::getUser();
314+
}
315+
316+
public function redirectToRoute($route, array $parameters = array(), $status = 302)
317+
{
318+
return parent::redirectToRoute($route, $parameters, $status);
319+
}
320+
321+
public function addFlash($type, $message)
322+
{
323+
parent::addFlash($type, $message);
324+
}
325+
326+
public function isCsrfTokenValid($id, $token)
327+
{
328+
return parent::isCsrfTokenValid($id, $token);
329+
}
330+
}

0 commit comments

Comments
 (0)