You are here

protected property QuickEditTestBase::$fields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php \Drupal\Tests\quickedit\Kernel\QuickEditTestBase::fields

Bag of created fields.

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

  • $this->fields->{$field_name}_field_storage
  • $this->fields->{$field_name}_instance

Type: \ArrayObject

See also

\Drupal\quickedit\Tests\QuickEditTestBase::createFieldWithStorage()

File

core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php, line 41

Class

QuickEditTestBase
Base class for testing Quick Edit functionality.

Namespace

Drupal\Tests\quickedit\Kernel

Code

protected $fields;