From 1f68b1a456cff2f1bde7fdc2a08a4d9540947371 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 19 Sep 2019 20:36:24 +0200 Subject: [PATCH] Deleted CreateSourceActionTest --- .../Action/Create/CreateSourceActionTest.php | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 application/symfony/tests/Unit/Domain/Action/Create/CreateSourceActionTest.php diff --git a/application/symfony/tests/Unit/Domain/Action/Create/CreateSourceActionTest.php b/application/symfony/tests/Unit/Domain/Action/Create/CreateSourceActionTest.php deleted file mode 100644 index ae0b902..0000000 --- a/application/symfony/tests/Unit/Domain/Action/Create/CreateSourceActionTest.php +++ /dev/null @@ -1,50 +0,0 @@ -setMethod(Request::METHOD_POST); -// $request->query->set(ClassAttributInterface::CLASS_ATTRIBUT_NAME, PureSource::class); -// $request->request->set(SlugAttributInterface::SLUG_ATTRIBUT_NAME, 'randomname'); -// $requestedActionService = $this->createMock(RequestedActionServiceInterface::class); -// $secureRequestedRightChecker = $this->createMock(SecureRequestedRightCheckerServiceInterface::class); -// $entityManager = $this->createMock(EntityManagerInterface::class); -// $pureSourceType = $this->createMock(PureSourceTypeInterface::class); -// $pureSourceType->method('isValid')->willReturn(true); -// $formBuilderInterface = $this->createMock(FormBuilderInterface::class); -// $formBuilderInterface->method('getForm')->willReturn($pureSourceType); -// // $formBuilderInterface->method('isValid')->willReturn(true); -// $requestedActionFormBuilderService = $this->createMock(RequestedActionFormBuilderServiceInterface::class); -// $requestedActionFormBuilderService->method('createByService')->willReturn($formBuilderInterface); -// $requestStack = $this->createMock(RequestStack::class); -// $requestStack->method('getCurrentRequest')->willReturn($request); -// $layerRepositoryFactoryService = $this->createMock(LayerRepositoryFactoryServiceInterface::class); -// $actionService = new ActionService($requestedActionService, $secureRequestedRightChecker, $requestStack, $layerRepositoryFactoryService, $requestedActionFormBuilderService, $entityManager); -// $createSourceAction = new CreateSourceAction($actionService); -// $result = $createSourceAction->execute(); -// $this->assertInstanceOf(PureSourceInterface::class, $result); -// } -}