function ManageFieldsLifecycleTest::createField

Same name in other branches
  1. 10 core/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php \Drupal\Tests\field_ui\Functional\ManageFieldsLifecycleTest::createField()

Tests adding a new field.

@todo Assert properties can be set in the form and read back in $field_storage and $fields.

1 call to ManageFieldsLifecycleTest::createField()
ManageFieldsLifecycleTest::testCRUDFields in core/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php
Runs the field CRUD tests.

File

core/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php, line 83

Class

ManageFieldsLifecycleTest
Tests the Field UI "Manage fields" screen.

Namespace

Drupal\Tests\field_ui\Functional

Code

protected function createField() {
    // Create a test field.
    $this->fieldUIAddNewField('admin/structure/types/manage/' . $this->contentType, $this->fieldNameInput, $this->fieldLabel);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.