You are here

public function MetatagFieldTestBase::testFieldCanBeAdded in Metatag 8

Confirm a field can be added to the entity bundle.

File

tests/src/Functional/MetatagFieldTestBase.php, line 292

Class

MetatagFieldTestBase
Base class for ensuring that the Metatag field works correctly.

Namespace

Drupal\Tests\metatag\Functional

Code

public function testFieldCanBeAdded() {
  $this
    ->drupalGet($this->entityFieldAdminPath . '/add-field');
  $session = $this
    ->assertSession();
  $session
    ->statusCodeEquals(200);
  $session
    ->responseContains('<option value="metatag">' . $this
    ->t('Meta tags') . '</option>');
}