function ManageFieldsTest::createField in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field_ui/src/Tests/ManageFieldsTest.php \Drupal\field_ui\Tests\ManageFieldsTest::createField()
Tests adding a new field.
@todo Assert properties can bet set in the form and read back in $field_storage and $fields.
1 call to ManageFieldsTest::createField()
- ManageFieldsTest::testCRUDFields in core/
modules/ field_ui/ src/ Tests/ ManageFieldsTest.php - Runs the field CRUD tests.
File
- core/
modules/ field_ui/ src/ Tests/ ManageFieldsTest.php, line 186 - Contains \Drupal\field_ui\Tests\ManageFieldsTest.
Class
- ManageFieldsTest
- Tests the Field UI "Manage fields" screen.
Namespace
Drupal\field_ui\TestsCode
function createField() {
// Create a test field.
$this
->fieldUIAddNewField('admin/structure/types/manage/' . $this->contentType, $this->fieldNameInput, $this->fieldLabel);
}