Loading modules/graphql_content/tests/modules/graphql_content_test/graphql_content_test.module +3 −3 Original line number Diff line number Diff line Loading @@ -11,13 +11,13 @@ * {@inheritdoc} */ function graphql_content_test_entity_extra_field_info() { $extra = array(); $extra = []; $extra['node']['test']['display']['test'] = array( $extra['node']['test']['display']['test'] = [ 'label' => t('Test'), 'description' => t('A virtual test field'), 'weight' => 0, ); ]; return $extra; } Loading modules/graphql_content/tests/src/DefaultViewModeTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -43,12 +43,12 @@ class DefaultViewModeTest extends GraphQLFileTest { 'type' => 'test', ]); FieldStorageConfig::create(array( FieldStorageConfig::create([ 'field_name' => 'field_keywords', 'entity_type' => 'node', 'type' => 'text', 'cardinality' => -1, ))->save(); ])->save(); FieldConfig::create([ 'entity_type' => 'node', Loading modules/graphql_content/tests/src/EntityRenderedFieldsTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -42,12 +42,12 @@ class EntityRenderedFieldsTest extends GraphQLFileTest { 'type' => 'test', ]); FieldStorageConfig::create(array( FieldStorageConfig::create([ 'field_name' => 'field_keywords', 'entity_type' => 'node', 'type' => 'text', 'cardinality' => -1, ))->save(); ])->save(); FieldConfig::create([ 'entity_type' => 'node', Loading modules/graphql_core/tests/src/GraphQLFileTest.php +5 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ namespace Drupal\Tests\graphql_core; use Drupal\graphql\GraphQL\Execution\Processor; use Drupal\Tests\token\Kernel\KernelTestBase; use Drupal\KernelTests\KernelTestBase; use Drupal\user\Entity\Role; /** Loading @@ -15,6 +15,9 @@ abstract class GraphQLFileTest extends KernelTestBase { * {@inheritdoc} */ public static $modules = [ 'system', 'path', 'user', 'graphql', 'graphql_core', ]; Loading @@ -24,6 +27,7 @@ abstract class GraphQLFileTest extends KernelTestBase { */ protected function setUp() { parent::setUp(); $this->installConfig('system'); $this->installConfig('graphql'); $this->installConfig('user'); $this->installEntitySchema('user'); Loading modules/graphql_file/tests/src/FileFieldTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -54,18 +54,18 @@ class FileFieldTest extends GraphQLFileTest { ])->save(); FieldStorageConfig::create(array( FieldStorageConfig::create([ 'field_name' => 'file', 'type' => 'file', 'entity_type' => 'node', ))->save(); ])->save(); FieldConfig::create(array( FieldConfig::create([ 'field_name' => 'file', 'entity_type' => 'node', 'bundle' => 'test', 'label' => 'File', ))->save(); ])->save(); EntityViewDisplay::create([ 'targetEntityType' => 'node', Loading Loading
modules/graphql_content/tests/modules/graphql_content_test/graphql_content_test.module +3 −3 Original line number Diff line number Diff line Loading @@ -11,13 +11,13 @@ * {@inheritdoc} */ function graphql_content_test_entity_extra_field_info() { $extra = array(); $extra = []; $extra['node']['test']['display']['test'] = array( $extra['node']['test']['display']['test'] = [ 'label' => t('Test'), 'description' => t('A virtual test field'), 'weight' => 0, ); ]; return $extra; } Loading
modules/graphql_content/tests/src/DefaultViewModeTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -43,12 +43,12 @@ class DefaultViewModeTest extends GraphQLFileTest { 'type' => 'test', ]); FieldStorageConfig::create(array( FieldStorageConfig::create([ 'field_name' => 'field_keywords', 'entity_type' => 'node', 'type' => 'text', 'cardinality' => -1, ))->save(); ])->save(); FieldConfig::create([ 'entity_type' => 'node', Loading
modules/graphql_content/tests/src/EntityRenderedFieldsTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -42,12 +42,12 @@ class EntityRenderedFieldsTest extends GraphQLFileTest { 'type' => 'test', ]); FieldStorageConfig::create(array( FieldStorageConfig::create([ 'field_name' => 'field_keywords', 'entity_type' => 'node', 'type' => 'text', 'cardinality' => -1, ))->save(); ])->save(); FieldConfig::create([ 'entity_type' => 'node', Loading
modules/graphql_core/tests/src/GraphQLFileTest.php +5 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ namespace Drupal\Tests\graphql_core; use Drupal\graphql\GraphQL\Execution\Processor; use Drupal\Tests\token\Kernel\KernelTestBase; use Drupal\KernelTests\KernelTestBase; use Drupal\user\Entity\Role; /** Loading @@ -15,6 +15,9 @@ abstract class GraphQLFileTest extends KernelTestBase { * {@inheritdoc} */ public static $modules = [ 'system', 'path', 'user', 'graphql', 'graphql_core', ]; Loading @@ -24,6 +27,7 @@ abstract class GraphQLFileTest extends KernelTestBase { */ protected function setUp() { parent::setUp(); $this->installConfig('system'); $this->installConfig('graphql'); $this->installConfig('user'); $this->installEntitySchema('user'); Loading
modules/graphql_file/tests/src/FileFieldTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -54,18 +54,18 @@ class FileFieldTest extends GraphQLFileTest { ])->save(); FieldStorageConfig::create(array( FieldStorageConfig::create([ 'field_name' => 'file', 'type' => 'file', 'entity_type' => 'node', ))->save(); ])->save(); FieldConfig::create(array( FieldConfig::create([ 'field_name' => 'file', 'entity_type' => 'node', 'bundle' => 'test', 'label' => 'File', ))->save(); ])->save(); EntityViewDisplay::create([ 'targetEntityType' => 'node', Loading