PHPDoced Attribut

This commit is contained in:
Kevin Frantz 2019-09-19 21:24:02 +02:00
parent 1f68b1a456
commit ca95096bc5

View File

@ -58,10 +58,15 @@ class CreateSourceActionIntegrationTest extends KernelTestCase
*/ */
private $requestStack; private $requestStack;
/**
* @var \Symfony\Component\Form\FormFactoryInterface
*/
private $formFactory;
public function setUp(): void public function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
$formFactory = self::$container->get('form.factory'); $this->formFactory = self::$container->get('form.factory');
$entityManager = static::$kernel->getContainer() $entityManager = static::$kernel->getContainer()
->get('doctrine') ->get('doctrine')
->getManager(); ->getManager();
@ -73,7 +78,7 @@ class CreateSourceActionIntegrationTest extends KernelTestCase
$this->requestedActionService = new RequestedActionService($requestedUserService); $this->requestedActionService = new RequestedActionService($requestedUserService);
$this->requestedActionService->setActionType(ActionType::CREATE); $this->requestedActionService->setActionType(ActionType::CREATE);
$formClassNameService = new FormClassNameService(); $formClassNameService = new FormClassNameService();
$entityFormBuilderService = new RequestedActionFormBuilderService($formFactory, $formClassNameService, $this->requestedActionService); $entityFormBuilderService = new RequestedActionFormBuilderService($this->formFactory, $formClassNameService, $this->requestedActionService);
$this->request = new Request(); $this->request = new Request();
$this->requestStack = new RequestStack(); $this->requestStack = new RequestStack();
$this->requestStack->push($this->request); $this->requestStack->push($this->request);
@ -96,6 +101,7 @@ class CreateSourceActionIntegrationTest extends KernelTestCase
$this->assertInstanceOf(PureSourceInterface::class, $this->createSourceAction->execute()); $this->assertInstanceOf(PureSourceInterface::class, $this->createSourceAction->execute());
} }
// public function testCreatedWithKnownUser(): void // @todo Implement the following function
// {} // public function testCreatedWithKnownUser(): void
// {}
} }