From 74a7de530e0ac1a9c59f26f0162e0ce42426fd32 Mon Sep 17 00:00:00 2001 From: Ndame Kital <ndame.kial@smile.fr> Date: Mon, 8 Jun 2020 09:27:27 +0200 Subject: [PATCH] corection juste des tests --- .gitignore | 19 +++++++++++++++---- .../App/Controller/DefaultController.php | 5 +++++ tests/Fixtures/config/routing.yaml | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 76c2dee9..8252b3b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,16 @@ -/vendor/ -/components/ -/composer.lock +/nbproject +/.idea/ +/.php_cs*cache /reports/ -.php_cs.*cache + +composer.lock +package-lock.json +yarn.lock +yarn-error.log +npm-debug.log + +node_modules/ +vendor/ + +/tests/Fixtures/public/build +/tests/Fixtures/var/ diff --git a/tests/Fixtures/App/Controller/DefaultController.php b/tests/Fixtures/App/Controller/DefaultController.php index 9d011690..93351ba1 100644 --- a/tests/Fixtures/App/Controller/DefaultController.php +++ b/tests/Fixtures/App/Controller/DefaultController.php @@ -20,6 +20,7 @@ namespace Irstea\FileUploadBundle\Tests\Fixtures\App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Symfony\Component\Form\Extension\Core\Type\FormType; use Symfony\Component\Form\FormFactory; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; @@ -52,6 +53,10 @@ class DefaultController extends Controller */ public function fileuploadAction(Request $request) { + $builder = $this->get('form.factory')->createBuilder(FormType::class); + + $form = $builder->getForm(); + return $this->render( 'show-case.html.twig', [ diff --git a/tests/Fixtures/config/routing.yaml b/tests/Fixtures/config/routing.yaml index b9fe2aa2..eaf53261 100644 --- a/tests/Fixtures/config/routing.yaml +++ b/tests/Fixtures/config/routing.yaml @@ -1,4 +1,4 @@ -irstea_file_upload_bundle: +irstea_file_upload_bundle : resource: "@FileUploadBundle/Resources/config/routing.yml" test_app: -- GitLab