protected function ManageFieldsTest::deleteField 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::deleteField()
Tests deleting a field from the field edit form.
1 call to ManageFieldsTest::deleteField()
- 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 289 - Contains \Drupal\field_ui\Tests\ManageFieldsTest.
Class
- ManageFieldsTest
- Tests the Field UI "Manage fields" screen.
Namespace
Drupal\field_ui\TestsCode
protected function deleteField() {
// Delete the field.
$field_id = 'node.' . $this->contentType . '.' . $this->fieldName;
$this
->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/' . $field_id);
$this
->clickLink(t('Delete'));
$this
->assertResponse(200);
}