From ca95096bc5952c2eae6cd9bb565cfcf8aa727987 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 19 Sep 2019 21:24:02 +0200 Subject: [PATCH] PHPDoced Attribut --- .../Create/CreateSourceActionIntegrationTest.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/application/symfony/tests/Integration/Domain/Action/Create/CreateSourceActionIntegrationTest.php b/application/symfony/tests/Integration/Domain/Action/Create/CreateSourceActionIntegrationTest.php index ffa2022..ca0d231 100644 --- a/application/symfony/tests/Integration/Domain/Action/Create/CreateSourceActionIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Action/Create/CreateSourceActionIntegrationTest.php @@ -58,10 +58,15 @@ class CreateSourceActionIntegrationTest extends KernelTestCase */ private $requestStack; + /** + * @var \Symfony\Component\Form\FormFactoryInterface + */ + private $formFactory; + public function setUp(): void { self::bootKernel(); - $formFactory = self::$container->get('form.factory'); + $this->formFactory = self::$container->get('form.factory'); $entityManager = static::$kernel->getContainer() ->get('doctrine') ->getManager(); @@ -73,7 +78,7 @@ class CreateSourceActionIntegrationTest extends KernelTestCase $this->requestedActionService = new RequestedActionService($requestedUserService); $this->requestedActionService->setActionType(ActionType::CREATE); $formClassNameService = new FormClassNameService(); - $entityFormBuilderService = new RequestedActionFormBuilderService($formFactory, $formClassNameService, $this->requestedActionService); + $entityFormBuilderService = new RequestedActionFormBuilderService($this->formFactory, $formClassNameService, $this->requestedActionService); $this->request = new Request(); $this->requestStack = new RequestStack(); $this->requestStack->push($this->request); @@ -96,6 +101,7 @@ class CreateSourceActionIntegrationTest extends KernelTestCase $this->assertInstanceOf(PureSourceInterface::class, $this->createSourceAction->execute()); } -// public function testCreatedWithKnownUser(): void -// {} + // @todo Implement the following function + // public function testCreatedWithKnownUser(): void + // {} }