You are here

protected function MetatagFieldNodeTest::setUpEntityType in Metatag 8

Any additional configuration that's needed for this entity type.

Overrides MetatagFieldTestBase::setUpEntityType

File

tests/src/Functional/MetatagFieldNodeTest.php, line 80

Class

MetatagFieldNodeTest
Ensures that the Metatag field works correctly on nodes.

Namespace

Drupal\Tests\metatag\Functional

Code

protected function setUpEntityType() {
  $this
    ->createContentType([
    'type' => 'page',
  ]);

  // 8.3 has the label 'Save and publish'.
  if (floatval(\Drupal::VERSION) <= 8.300000000000001) {
    $this->entitySaveButtonLabel = 'Save and publish';
  }
}