You are here

protected function MetatagFieldUserTest::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.

Overrides MetatagFieldTestBase::entityDefaultValues

File

tests/src/Functional/MetatagFieldUserTest.php, line 85

Class

MetatagFieldUserTest
Ensures that the Metatag field works correctly on users.

Namespace

Drupal\Tests\metatag\Functional

Code

protected function entityDefaultValues($title = 'Barfoo') {
  $password = $this
    ->randomString(16);
  return [
    'mail' => 'test' . $this->adminUser
      ->getEmail(),
    'name' => $title,
    'pass[pass1]' => $password,
    'pass[pass2]' => $password,
  ];
}