@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | /** |
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:18. |
| 7 | 7 | */ |
| 8 | -class AppBundleTest extends \PHPUnit_Framework_TestCase { |
|
| 8 | +class AppBundleTest extends \PHPUnit_Framework_TestCase |
|
| 9 | +{ |
|
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * @var AppBundle |
@@ -16,7 +17,8 @@ discard block |
||
| 16 | 17 | * Sets up the fixture, for example, opens a network connection. |
| 17 | 18 | * This method is called before a test is executed. |
| 18 | 19 | */ |
| 19 | - protected function setUp() { |
|
| 20 | + protected function setUp() |
|
| 21 | + { |
|
| 20 | 22 | $this->object = new AppBundle; |
| 21 | 23 | } |
| 22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
| 24 | 26 | * Tears down the fixture, for example, closes a network connection. |
| 25 | 27 | * This method is called after a test is executed. |
| 26 | 28 | */ |
| 27 | - protected function tearDown() { |
|
| 29 | + protected function tearDown() |
|
| 30 | + { |
|
| 28 | 31 | |
| 29 | 32 | } |
| 30 | 33 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | $session = $this->getRequest()->getSession(); |
| 49 | 49 | |
| 50 | - return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null; |
|
| 50 | + return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | $alias = current($qb->getDQLPart('from'))->getAlias(); |
| 62 | 62 | if (is_array($order = $this->getOrder($name))) { |
| 63 | - $qb->orderBy($alias . '.' . $order['field'], $order['type']); |
|
| 63 | + $qb->orderBy($alias.'.'.$order['field'], $order['type']); |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | |
@@ -29,6 +29,9 @@ |
||
| 29 | 29 | * Fonction adaptable aux différentes phases de l'installation. |
| 30 | 30 | * |
| 31 | 31 | * @param \Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
| 32 | + * @param string $entity |
|
| 33 | + * @param string $entityPath |
|
| 34 | + * @param string $typePath |
|
| 32 | 35 | * |
| 33 | 36 | * @return \Symfony\Component\HttpFoundation\RedirectResponse| |
| 34 | 37 | * array<string,string|null|Settings|\Symfony\Component\Form\FormView> Rendue de la page |