public function MetatagFieldTestBase::testEntityFieldsAvailable in Metatag 8
Confirm a field can be added to the entity bundle.
File
- tests/
src/ Functional/ MetatagFieldTestBase.php, line 302
Class
- MetatagFieldTestBase
- Base class for ensuring that the Metatag field works correctly.
Namespace
Drupal\Tests\metatag\FunctionalCode
public function testEntityFieldsAvailable() {
// Add a field to the entity type.
$this
->addField();
// Load the entity's form.
$this
->drupalGet($this->entityAddPath);
$session = $this
->assertSession();
$session
->statusCodeEquals(200);
$session
->pageTextNotContains('Fatal error');
$session
->fieldExists('field_metatag[0][basic][metatag_test_tag]');
}