You are here

function ManageFieldsTest::testCRUDFields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field_ui/src/Tests/ManageFieldsTest.php \Drupal\field_ui\Tests\ManageFieldsTest::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/src/Tests/ManageFieldsTest.php, line 119
Contains \Drupal\field_ui\Tests\ManageFieldsTest.

Class

ManageFieldsTest
Tests the Field UI "Manage fields" screen.

Namespace

Drupal\field_ui\Tests

Code

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