@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | /** |
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:22. |
| 7 | 7 | */ |
| 8 | -class InstallControllerTest extends \PHPUnit_Framework_TestCase { |
|
| 8 | +class InstallControllerTest extends \PHPUnit_Framework_TestCase |
|
| 9 | +{ |
|
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * @var InstallController |
@@ -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 InstallController; |
| 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 | |
@@ -32,7 +35,8 @@ discard block |
||
| 32 | 35 | * @covers AppBundle\Controller\install\InstallController::indexAction |
| 33 | 36 | * @todo Implement testIndexAction(). |
| 34 | 37 | */ |
| 35 | - public function testIndexAction() { |
|
| 38 | + public function testIndexAction() |
|
| 39 | + { |
|
| 36 | 40 | // Remove the following lines when you implement this test. |
| 37 | 41 | $this->markTestIncomplete( |
| 38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
| 43 | 47 | * @covers AppBundle\Controller\install\InstallController::step1Action |
| 44 | 48 | * @todo Implement testStep1Action(). |
| 45 | 49 | */ |
| 46 | - public function testStep1Action() { |
|
| 50 | + public function testStep1Action() |
|
| 51 | + { |
|
| 47 | 52 | // Remove the following lines when you implement this test. |
| 48 | 53 | $this->markTestIncomplete( |
| 49 | 54 | 'This test has not been implemented yet.' |
@@ -54,7 +59,8 @@ discard block |
||
| 54 | 59 | * @covers AppBundle\Controller\install\InstallController::step2Action |
| 55 | 60 | * @todo Implement testStep2Action(). |
| 56 | 61 | */ |
| 57 | - public function testStep2Action() { |
|
| 62 | + public function testStep2Action() |
|
| 63 | + { |
|
| 58 | 64 | // Remove the following lines when you implement this test. |
| 59 | 65 | $this->markTestIncomplete( |
| 60 | 66 | 'This test has not been implemented yet.' |
@@ -4,9 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
| 6 | 6 | |
| 7 | -class DefaultControllerTest extends WebTestCase { |
|
| 7 | +class DefaultControllerTest extends WebTestCase |
|
| 8 | +{ |
|
| 8 | 9 | |
| 9 | - public function testIndex() { |
|
| 10 | + public function testIndex() |
|
| 11 | + { |
|
| 10 | 12 | $client = static::createClient(); |
| 11 | 13 | |
| 12 | 14 | $crawler = $client->request('GET', '/'); |
@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | /** |
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:19. |
| 7 | 7 | */ |
| 8 | -class MenuBuilderTest extends \PHPUnit_Framework_TestCase { |
|
| 8 | +class MenuBuilderTest extends \PHPUnit_Framework_TestCase |
|
| 9 | +{ |
|
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * @var MenuBuilder |
@@ -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 MenuBuilder; |
| 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 | |
@@ -32,7 +35,8 @@ discard block |
||
| 32 | 35 | * @covers AppBundle\Menu\MenuBuilder::buildMainMenu |
| 33 | 36 | * @todo Implement testBuildMainMenu(). |
| 34 | 37 | */ |
| 35 | - public function testBuildMainMenu() { |
|
| 38 | + public function testBuildMainMenu() |
|
| 39 | + { |
|
| 36 | 40 | // Remove the following lines when you implement this test. |
| 37 | 41 | $this->markTestIncomplete( |
| 38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
| 43 | 47 | * @covers AppBundle\Menu\MenuBuilder::buildUserMenu |
| 44 | 48 | * @todo Implement testBuildUserMenu(). |
| 45 | 49 | */ |
| 46 | - public function testBuildUserMenu() { |
|
| 50 | + public function testBuildUserMenu() |
|
| 51 | + { |
|
| 47 | 52 | // Remove the following lines when you implement this test. |
| 48 | 53 | $this->markTestIncomplete( |
| 49 | 54 | 'This test has not been implemented yet.' |
@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | /** |
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:19. |
| 7 | 7 | */ |
| 8 | -class RequestVoterTest extends \PHPUnit_Framework_TestCase { |
|
| 8 | +class RequestVoterTest extends \PHPUnit_Framework_TestCase |
|
| 9 | +{ |
|
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * @var RequestVoter |
@@ -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 RequestVoter; |
| 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 | |
@@ -32,7 +35,8 @@ discard block |
||
| 32 | 35 | * @covers AppBundle\Menu\RequestVoter::matchItem |
| 33 | 36 | * @todo Implement testMatchItem(). |
| 34 | 37 | */ |
| 35 | - public function testMatchItem() { |
|
| 38 | + public function testMatchItem() |
|
| 39 | + { |
|
| 36 | 40 | // Remove the following lines when you implement this test. |
| 37 | 41 | $this->markTestIncomplete( |
| 38 | 42 | 'This test has not been implemented yet.' |
@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | /** |
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:24. |
| 7 | 7 | */ |
| 8 | -class LoginListenerTest extends \PHPUnit_Framework_TestCase { |
|
| 8 | +class LoginListenerTest extends \PHPUnit_Framework_TestCase |
|
| 9 | +{ |
|
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * @var LoginListener |
@@ -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 LoginListener; |
| 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 | |
@@ -32,7 +35,8 @@ discard block |
||
| 32 | 35 | * @covers AppBundle\Listener\LoginListener::getSubscribedEvents |
| 33 | 36 | * @todo Implement testGetSubscribedEvents(). |
| 34 | 37 | */ |
| 35 | - public function testGetSubscribedEvents() { |
|
| 38 | + public function testGetSubscribedEvents() |
|
| 39 | + { |
|
| 36 | 40 | // Remove the following lines when you implement this test. |
| 37 | 41 | $this->markTestIncomplete( |
| 38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
| 43 | 47 | * @covers AppBundle\Listener\LoginListener::onImplicitLogin |
| 44 | 48 | * @todo Implement testOnImplicitLogin(). |
| 45 | 49 | */ |
| 46 | - public function testOnImplicitLogin() { |
|
| 50 | + public function testOnImplicitLogin() |
|
| 51 | + { |
|
| 47 | 52 | // Remove the following lines when you implement this test. |
| 48 | 53 | $this->markTestIncomplete( |
| 49 | 54 | 'This test has not been implemented yet.' |
@@ -54,7 +59,8 @@ discard block |
||
| 54 | 59 | * @covers AppBundle\Listener\LoginListener::onSecurityInteractiveLogin |
| 55 | 60 | * @todo Implement testOnSecurityInteractiveLogin(). |
| 56 | 61 | */ |
| 57 | - public function testOnSecurityInteractiveLogin() { |
|
| 62 | + public function testOnSecurityInteractiveLogin() |
|
| 63 | + { |
|
| 58 | 64 | // Remove the following lines when you implement this test. |
| 59 | 65 | $this->markTestIncomplete( |
| 60 | 66 | 'This test has not been implemented yet.' |
@@ -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 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * @Method({"POST","GET"}) |
| 45 | 45 | * @Template("AppBundle:install:step4.html.twig") |
| 46 | 46 | * |
| 47 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 47 | + * @param Request $request Requète du formulaire |
|
| 48 | 48 | * |
| 49 | 49 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 50 | 50 | */ |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * @Method({"POST","GET"}) |
| 85 | 85 | * @Template("AppBundle:install:step4.html.twig") |
| 86 | 86 | * |
| 87 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 87 | + * @param Request $request Requète du formulaire |
|
| 88 | 88 | * |
| 89 | 89 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 90 | 90 | */ |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * @Method({"POST","GET"}) |
| 121 | 121 | * @Template("AppBundle:install:step4.html.twig") |
| 122 | 122 | * |
| 123 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 123 | + * @param Request $request Requète du formulaire |
|
| 124 | 124 | * |
| 125 | 125 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 126 | 126 | */ |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * @Method({"POST","GET"}) |
| 157 | 157 | * @Template("AppBundle:install:step4.html.twig") |
| 158 | 158 | * |
| 159 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 159 | + * @param Request $request Requète du formulaire |
|
| 160 | 160 | * |
| 161 | 161 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 162 | 162 | */ |
@@ -14,18 +14,18 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller\Install; |
| 16 | 16 | |
| 17 | +use AppBundle\Entity\FamilyLog; |
|
| 18 | +use AppBundle\Entity\Tva; |
|
| 19 | +use AppBundle\Entity\UnitStorage; |
|
| 20 | +use AppBundle\Entity\ZoneStorage; |
|
| 21 | +use AppBundle\Form\Type\FamilyLogType; |
|
| 22 | +use AppBundle\Form\Type\TvaType; |
|
| 23 | +use AppBundle\Form\Type\UnitStorageType; |
|
| 24 | +use AppBundle\Form\Type\ZoneStorageType; |
|
| 17 | 25 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 18 | 26 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 19 | 27 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 20 | 28 | use Symfony\Component\HttpFoundation\Request; |
| 21 | -use AppBundle\Entity\FamilyLog; |
|
| 22 | -use AppBundle\Form\Type\FamilyLogType; |
|
| 23 | -use AppBundle\Entity\ZoneStorage; |
|
| 24 | -use AppBundle\Form\Type\ZoneStorageType; |
|
| 25 | -use AppBundle\Entity\UnitStorage; |
|
| 26 | -use AppBundle\Form\Type\UnitStorageType; |
|
| 27 | -use AppBundle\Entity\Tva; |
|
| 28 | -use AppBundle\Form\Type\TvaType; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * class InstallController |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @Route("/", name="gs_install") |
| 46 | 46 | * |
| 47 | - * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
|
| 47 | + * @return \Symfony\Component\HttpFoundation\Response Rendue de la page |
|
| 48 | 48 | */ |
| 49 | 49 | public function indexAction() |
| 50 | 50 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @Method({"POST","GET"}) |
| 60 | 60 | * @Template("AppBundle:install:step1.html.twig") |
| 61 | 61 | * |
| 62 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 62 | + * @param Request $request Requète du formulaire |
|
| 63 | 63 | * |
| 64 | 64 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 65 | 65 | */ |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * @Method({"POST","GET"}) |
| 99 | 99 | * @Template("AppBundle:install:step2.html.twig") |
| 100 | 100 | * |
| 101 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 101 | + * @param Request $request Requète du formulaire |
|
| 102 | 102 | * |
| 103 | 103 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 104 | 104 | */ |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | * @Method({"POST","GET"}) |
| 135 | 135 | * @Template("AppBundle:install:step3.html.twig") |
| 136 | 136 | * |
| 137 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 137 | + * @param Request $request Requète du formulaire |
|
| 138 | 138 | * |
| 139 | 139 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 140 | 140 | */ |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * @Method({"GET"}) |
| 171 | 171 | * @Template("AppBundle:install:step4.html.twig") |
| 172 | 172 | * |
| 173 | - * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
|
| 173 | + * @return \Symfony\Component\HttpFoundation\Response Rendue de la page |
|
| 174 | 174 | */ |
| 175 | 175 | public function step4Action() |
| 176 | 176 | { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * @Method({"POST","GET"}) |
| 186 | 186 | * @Template("AppBundle:install:step5.html.twig") |
| 187 | 187 | * |
| 188 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 188 | + * @param Request $request Requète du formulaire |
|
| 189 | 189 | * |
| 190 | 190 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 191 | 191 | */ |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | * @Method({"POST","GET"}) |
| 222 | 222 | * @Template("AppBundle:install:step6.html.twig") |
| 223 | 223 | * |
| 224 | - * @param Symfony\Component\HttpFoundation\Request $request Requète du formulaire |
|
| 224 | + * @param Request $request Requète du formulaire |
|
| 225 | 225 | * |
| 226 | 226 | * @return Symfony\Component\HttpFoundation\Response Rendue de la page |
| 227 | 227 | */ |
@@ -14,21 +14,21 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller\Install; |
| 16 | 16 | |
| 17 | +use AppBundle\Entity\Article; |
|
| 18 | +use AppBundle\Entity\Company; |
|
| 19 | +use AppBundle\Entity\Settings; |
|
| 20 | +use AppBundle\Entity\Supplier; |
|
| 21 | +use AppBundle\Entity\User; |
|
| 22 | +use AppBundle\Form\Type\ArticleType; |
|
| 23 | +use AppBundle\Form\Type\CompanyType; |
|
| 24 | +use AppBundle\Form\Type\SettingsType; |
|
| 25 | +use AppBundle\Form\Type\SupplierType; |
|
| 26 | +use AppBundle\Form\Type\UserType; |
|
| 17 | 27 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 18 | 28 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 19 | 29 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 20 | 30 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 21 | 31 | use Symfony\Component\HttpFoundation\Request; |
| 22 | -use AppBundle\Entity\User; |
|
| 23 | -use AppBundle\Form\Type\UserType; |
|
| 24 | -use AppBundle\Entity\Company; |
|
| 25 | -use AppBundle\Form\Type\CompanyType; |
|
| 26 | -use AppBundle\Entity\Settings; |
|
| 27 | -use AppBundle\Form\Type\SettingsType; |
|
| 28 | -use AppBundle\Entity\Supplier; |
|
| 29 | -use AppBundle\Form\Type\SupplierType; |
|
| 30 | -use AppBundle\Entity\Article; |
|
| 31 | -use AppBundle\Form\Type\ArticleType; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * class InstallController |