protected function RangeTestTrait::deleteField in Range 8
Deletes previously created range field.
2 calls to RangeTestTrait::deleteField()
- RangeWidgetUiTest::testTextFieldsWidgetUi in tests/
src/ Functional/ Widget/ RangeWidgetUiTest.php - Tests widget UI.
- WidgetTest::testFieldWidget in tests/
src/ Kernel/ Widget/ WidgetTest.php - Tests widget.
File
- tests/
src/ Traits/ RangeTestTrait.php, line 268
Class
- RangeTestTrait
- Provides helper methods to test range fields.
Namespace
Drupal\Tests\range\TraitsCode
protected function deleteField() {
$this->field
->delete();
$this->fieldStorage
->delete();
}