X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fsrc%2FTests%2FMetatagFieldUserTest.php;fp=web%2Fmodules%2Fcontrib%2Fmetatag%2Fsrc%2FTests%2FMetatagFieldUserTest.php;h=723401414606279371eb5dd2cdbe41ea299ecdb3;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=165a1e4137bea1510659b67a950dda77cf51ccab;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/modules/contrib/metatag/src/Tests/MetatagFieldUserTest.php b/web/modules/contrib/metatag/src/Tests/MetatagFieldUserTest.php index 165a1e413..723401414 100644 --- a/web/modules/contrib/metatag/src/Tests/MetatagFieldUserTest.php +++ b/web/modules/contrib/metatag/src/Tests/MetatagFieldUserTest.php @@ -2,9 +2,6 @@ namespace Drupal\metatag\Tests; -use Drupal\Core\Cache\Cache; -use Drupal\metatag\Tests\MetatagFieldTestBase; - /** * Ensures that the Metatag field works correctly on users. * @@ -13,7 +10,7 @@ use Drupal\metatag\Tests\MetatagFieldTestBase; class MetatagFieldUserTest extends MetatagFieldTestBase { /** - * {@inheritDoc} + * {@inheritdoc} */ public static $modules = [ // Needed for token handling. @@ -36,9 +33,9 @@ class MetatagFieldUserTest extends MetatagFieldTestBase { ]; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected $entity_perms = [ + protected $entityPerms = [ // From Field UI. 'administer user fields', @@ -48,44 +45,44 @@ class MetatagFieldUserTest extends MetatagFieldTestBase { ]; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected $entity_type = 'user'; + protected $entityType = 'user'; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected $entity_label = 'User'; + protected $entityLabel = 'User'; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected $entity_bundle = 'user'; + protected $entityBundle = 'user'; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected $entity_add_path = 'admin/people/create'; + protected $entityAddPath = 'admin/people/create'; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected $entity_field_admin_path = 'admin/config/people/accounts/fields'; + protected $entityFieldAdminPath = 'admin/config/people/accounts/fields'; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected $entity_title_field = 'name'; + protected $entityTitleField = 'name'; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected $entity_save_button_label = 'Create new account'; + protected $entitySaveButtonLabel = 'Create new account'; /** - * {@inheritDoc} + * {@inheritdoc} */ - protected function entity_default_values($title = 'Barfoo') { + protected function entityDefaultValues($title = 'Barfoo') { $password = $this->randomString(16); return [ 'mail' => 'test' . $this->adminUser->getEmail(), @@ -100,13 +97,13 @@ class MetatagFieldUserTest extends MetatagFieldTestBase { * * @todo */ - // protected function testFieldsOnUserRegistrationForm() {} + public function testFieldsOnUserRegistrationForm() {} /** * Confirm the metatag field can be shown on a normal user's own edit form. * * @todo */ - // protected function testFieldsOnUserEditForm() {} + public function testFieldsOnUserEditForm() {} }