From 1d8a0f0b19edcf2cb7322002ecfd011ed2496f31 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 26 Jan 2019 20:22:17 +0100 Subject: [PATCH] Added FormClassNameService --- .../FormManagement/FormClassNameService.php | 31 +++++++++++++++++++ .../FormClassNameServiceInterface.php | 18 +++++++++++ .../FormClassNameServiceTest.php | 21 +++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 application/symfony/src/Domain/FormManagement/FormClassNameService.php create mode 100644 application/symfony/src/Domain/FormManagement/FormClassNameServiceInterface.php create mode 100644 application/symfony/tests/Unit/Domain/FormManagement/FormClassNameServiceTest.php diff --git a/application/symfony/src/Domain/FormManagement/FormClassNameService.php b/application/symfony/src/Domain/FormManagement/FormClassNameService.php new file mode 100644 index 0000000..e803ead --- /dev/null +++ b/application/symfony/src/Domain/FormManagement/FormClassNameService.php @@ -0,0 +1,31 @@ +getName($entity); + $this->assertEquals('App\\Form\\Source\\PureSourceType', $entityForm); + } +}