function ManageFieldsFunctionalTest::fieldListAdminPage

Same name and namespace in other branches
  1. 8.9.x core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php \Drupal\Tests\field_ui\Functional\ManageFieldsFunctionalTest::fieldListAdminPage()

Tests that the field list administration page operates correctly.

1 call to ManageFieldsFunctionalTest::fieldListAdminPage()
ManageFieldsFunctionalTest::testCRUDFields in core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
Runs the field CRUD tests.

File

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

Class

ManageFieldsFunctionalTest
Tests the Field UI "Manage fields" screen.

Namespace

Drupal\Tests\field_ui\Functional

Code

public function fieldListAdminPage() {
    $this->drupalGet('admin/reports/fields');
    $this->assertSession()
        ->pageTextContains($this->fieldName);
    $this->assertSession()
        ->linkByHrefExists('admin/structure/types/manage/' . $this->contentType . '/fields');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.