mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 05:47:11 +02:00
Implemented getChoices and getValues from Doctrine ENUM on the right way
This commit is contained in:
@@ -59,7 +59,7 @@ class ActionTemplateDataStoreServiceTest extends TestCase
|
||||
|
||||
public function testAccessors(): void
|
||||
{
|
||||
foreach (ActionType::getChoices() as $actionType) {
|
||||
foreach (ActionType::getValues() as $actionType) {
|
||||
$instance = ActionTemplateDataStoreService::ACTION_DATA_MAPPING[$actionType];
|
||||
$data = $this->createMock($instance);
|
||||
$this->assertFalse($this->actionTemplateDataStoreService->isDataStored($actionType));
|
||||
|
@@ -29,7 +29,7 @@ class TemplatePathFormAndViewTest extends TestCase
|
||||
|
||||
public function testTypeReload(): void
|
||||
{
|
||||
foreach (RESTResponseType::getChoices() as $type) {
|
||||
foreach (RESTResponseType::getValues() as $type) {
|
||||
$this->templatePathFormAndView->reloadType($type);
|
||||
$this->assertEquals(self::BASE_PATH.$type.'.twig', $this->templatePathFormAndView->getView()->getAtomTemplatePath());
|
||||
}
|
||||
|
@@ -52,7 +52,7 @@ class TemplatePathInformationTest extends TestCase
|
||||
|
||||
public function testSetType(): void
|
||||
{
|
||||
foreach (RESTResponseType::getChoices() as $type) {
|
||||
foreach (RESTResponseType::getValues() as $type) {
|
||||
$this->templateMeta->reloadType($type);
|
||||
$this->assertEquals($this->getExpectedPath($type, 'atom'), $this->templateMeta->getAtomTemplatePath());
|
||||
$this->assertEquals($this->getExpectedPath($type, 'molecule'), $this->templateMeta->getMoleculeTemplatePath());
|
||||
|
Reference in New Issue
Block a user