You are here

protected function BlazyUnitTestTrait::getDefaultFieldDefinition in Blazy 8.2

Returns the default field definition.

Return value

array The default field definition.

2 calls to BlazyUnitTestTrait::getDefaultFieldDefinition()
BlazyUnitTestTrait::getDefaultFormatterDefinition in tests/src/Traits/BlazyUnitTestTrait.php
Returns the default field formatter definition.
BlazyUnitTestTrait::getFormatterSettings in tests/src/Traits/BlazyUnitTestTrait.php
Returns sensible formatter settings for testing purposes.

File

tests/src/Traits/BlazyUnitTestTrait.php, line 80

Class

BlazyUnitTestTrait
A Trait common for Blazy Unit tests.

Namespace

Drupal\Tests\blazy\Traits

Code

protected function getDefaultFieldDefinition() {
  return [
    'bundle' => isset($this->bundle) ? $this->bundle : 'bundle_test',
    'current_view_mode' => 'default',
    'entity_type' => $this->entityType,
    'field_name' => $this->testFieldName,
    'field_type' => 'image',
  ];
}