mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 02:06:23 +02:00
Renamed method to a more speaking name
This commit is contained in:
parent
d3379630c8
commit
f85b0118a7
@ -83,7 +83,7 @@ final class ActionService implements ActionServiceInterface
|
|||||||
/**
|
/**
|
||||||
* @return FormBuilderInterface
|
* @return FormBuilderInterface
|
||||||
*/
|
*/
|
||||||
public function getForm(): FormBuilderInterface
|
public function getCurrentFormBuilder(): FormBuilderInterface
|
||||||
{
|
{
|
||||||
return $this->requestedActionFormBuilderService->createByService();
|
return $this->requestedActionFormBuilderService->createByService();
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ interface ActionServiceInterface
|
|||||||
/**
|
/**
|
||||||
* @return FormBuilderInterface
|
* @return FormBuilderInterface
|
||||||
*/
|
*/
|
||||||
public function getForm(): FormBuilderInterface;
|
public function getCurrentFormBuilder(): FormBuilderInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return EntityManagerInterface
|
* @return EntityManagerInterface
|
||||||
|
@ -21,7 +21,8 @@ class RequestedActionFormBuilder implements RequestedActionFormBuilderInterface
|
|||||||
private $formClassNameService;
|
private $formClassNameService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param FormBuilderInterface $formBuilder
|
* @param FormBuilderInterface $formBuilder
|
||||||
|
* @param FormClassNameServiceInterface $formClassNameService
|
||||||
*/
|
*/
|
||||||
public function __construct(FormBuilderInterface $formBuilder, FormClassNameServiceInterface $formClassNameService)
|
public function __construct(FormBuilderInterface $formBuilder, FormClassNameServiceInterface $formClassNameService)
|
||||||
{
|
{
|
||||||
|
@ -48,7 +48,7 @@ final class RightTransformerService implements RightTransformerServiceInterface
|
|||||||
$attributes = [];
|
$attributes = [];
|
||||||
$reflection = new \ReflectionClass($right);
|
$reflection = new \ReflectionClass($right);
|
||||||
$methods = $reflection->getMethods(\ReflectionMethod::IS_PUBLIC);
|
$methods = $reflection->getMethods(\ReflectionMethod::IS_PUBLIC);
|
||||||
/**
|
/*
|
||||||
* @var \ReflectionMethod
|
* @var \ReflectionMethod
|
||||||
*/
|
*/
|
||||||
foreach ($methods as $method) {
|
foreach ($methods as $method) {
|
||||||
|
@ -118,11 +118,11 @@ class ActionServiceTest extends TestCase
|
|||||||
$this->assertEquals($request, $result);
|
$this->assertEquals($request, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetForm(): void
|
public function testGetCurrentFormBuilder(): void
|
||||||
{
|
{
|
||||||
$form = $this->createMock(FormBuilderInterface::class);
|
$form = $this->createMock(FormBuilderInterface::class);
|
||||||
$this->requestedActionFormBuilderService->method('createByService')->willReturn($form);
|
$this->requestedActionFormBuilderService->method('createByService')->willReturn($form);
|
||||||
$result = $this->actionService->getForm();
|
$result = $this->actionService->getCurrentFormBuilder();
|
||||||
$this->assertEquals($form, $result);
|
$this->assertEquals($form, $result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user