You are here

protected property FieldUnitTestBase::$fieldTestData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/src/Tests/FieldUnitTestBase.php \Drupal\field\Tests\FieldUnitTestBase::fieldTestData

Bag of created field storages and fields.

Allows easy access to test field storage/field names/IDs/objects via:

  • $this->fieldTestData->field_name[suffix]
  • $this->fieldTestData->field_storage[suffix]
  • $this->fieldTestData->field_storage_uuid[suffix]
  • $this->fieldTestData->field[suffix]
  • $this->fieldTestData->field_definition[suffix]

Type: \ArrayObject

See also

\Drupal\field\Tests\FieldUnitTestBase::createFieldWithStorage()

File

core/modules/field/src/Tests/FieldUnitTestBase.php, line 41
Contains \Drupal\field\Tests\FieldUnitTestBase.

Class

FieldUnitTestBase
Parent class for Field API unit tests.

Namespace

Drupal\field\Tests

Code

protected $fieldTestData;