Skip to content

Commit c040e60

Browse files
committed
[Tests] Updated Ibexa\Tests\Core\MVC\Symfony\Templating\Twig\Extension\FieldRenderingExtensionIntegrationTest test
1 parent 5361069 commit c040e60

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/lib/MVC/Symfony/Templating/Twig/Extension/FieldRenderingExtensionIntegrationTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727

2828
class FieldRenderingExtensionIntegrationTest extends FileSystemTwigIntegrationTestCase
2929
{
30+
private const int EXAMPLE_FIELD_DEFINITION_ID = 2;
31+
private const int EXAMPLE_CONTENT_TYPE_ID = 32;
32+
3033
private $fieldDefinitions = [];
3134

3235
public function getExtensions()
@@ -64,7 +67,7 @@ public function getFieldDefinition($typeIdentifier, $id = null, $settings = [])
6467
{
6568
return new FieldDefinition(
6669
[
67-
'id' => $id,
70+
'id' => $id ?? self::EXAMPLE_FIELD_DEFINITION_ID,
6871
'fieldSettings' => $settings,
6972
'fieldTypeIdentifier' => $typeIdentifier,
7073
]
@@ -104,7 +107,7 @@ protected function getContent($contentTypeIdentifier, array $fieldsData, array $
104107
[
105108
'internalFields' => $fields,
106109
'contentType' => new ContentType([
107-
'id' => $contentTypeIdentifier,
110+
'id' => self::EXAMPLE_CONTENT_TYPE_ID,
108111
'identifier' => $contentTypeIdentifier,
109112
'mainLanguageCode' => 'fre-FR',
110113
'fieldDefinitions' => new FieldDefinitionCollection(

0 commit comments

Comments
 (0)