You are here

public function ManageFieldsFunctionalTest::testCRUDFields in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php \Drupal\Tests\field_ui\Functional\ManageFieldsFunctionalTest::testCRUDFields()
  2. 10 core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php \Drupal\Tests\field_ui\Functional\ManageFieldsFunctionalTest::testCRUDFields()

Runs the field CRUD tests.

In order to act on the same fields, and not create the fields over and over again the following tests create, update and delete the same fields.

File

core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php, line 147

Class

ManageFieldsFunctionalTest
Tests the Field UI "Manage fields" screen.

Namespace

Drupal\Tests\field_ui\Functional

Code

public function testCRUDFields() {
  $this
    ->manageFieldsPage();
  $this
    ->createField();
  $this
    ->updateField();
  $this
    ->addExistingField();
  $this
    ->cardinalitySettings();
  $this
    ->fieldListAdminPage();
  $this
    ->deleteField();
  $this
    ->addPersistentFieldStorage();
}