You are here

protected function MetatagFieldTestBase::entityDefaultValues in Metatag 8

A list of default values to add to the entity being created.

Defaults to "{$entityTitleField}[0][value]" => $title.

Return value

array Default values.

4 calls to MetatagFieldTestBase::entityDefaultValues()
MetatagFieldTestBase::testEntityDefaultsInheritance in tests/src/Functional/MetatagFieldTestBase.php
Confirm that the entity default values work correctly.
MetatagFieldTestBase::testEntityFieldValuesNewEntity in tests/src/Functional/MetatagFieldTestBase.php
Confirm that the default values load correctly.
MetatagFieldTestBase::testEntityFieldValuesOldEntity in tests/src/Functional/MetatagFieldTestBase.php
Confirm that the default values load correctly for an entity created.
MetatagFieldTestBase::tofixTestEntityField in tests/src/Functional/MetatagFieldTestBase.php
Tests adding and editing values on a given entity type.
1 method overrides MetatagFieldTestBase::entityDefaultValues()
MetatagFieldUserTest::entityDefaultValues in tests/src/Functional/MetatagFieldUserTest.php
A list of default values to add to the entity being created.

File

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

Class

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

Namespace

Drupal\Tests\metatag\Functional

Code

protected function entityDefaultValues() {
  return [];
}