You are here

public function LinkTypeFieldEntryTest::doAddFields in Flag 8.4

Add fields to flag.

1 call to LinkTypeFieldEntryTest::doAddFields()
LinkTypeFieldEntryTest::testCreateFieldEntryFlag in tests/src/Functional/LinkTypeFieldEntryTest.php
Create a new flag with the Field Entry type, and add fields.

File

tests/src/Functional/LinkTypeFieldEntryTest.php, line 102

Class

LinkTypeFieldEntryTest
Test the Field Entry link type.

Namespace

Drupal\Tests\flag\Functional

Code

public function doAddFields() {
  $flag_id = $this->flag
    ->id();

  // Check the Field UI tabs appear on the flag edit page.
  $this
    ->drupalGet('admin/structure/flags/manage/' . $flag_id);
  $this
    ->assertText(t("Manage fields"), "The Field UI tabs appear on the flag edit form page.");
  $this
    ->fieldUIAddNewField('admin/structure/flags/manage/' . $flag_id, $this->flagFieldId, $this->flagFieldLabel, 'text');
}