X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fmetatag_google_plus%2Fsrc%2FTests%2FMetatagGooglePlusTagsTest.php;fp=web%2Fmodules%2Fcontrib%2Fmetatag%2Fmetatag_google_plus%2Fsrc%2FTests%2FMetatagGooglePlusTagsTest.php;h=dc8eea5add2d5d05aa0c850cb84782bd7f0fcd89;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=dda2dbb8f572915265542692bf7dc25f144b1e85;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/modules/contrib/metatag/metatag_google_plus/src/Tests/MetatagGooglePlusTagsTest.php b/web/modules/contrib/metatag/metatag_google_plus/src/Tests/MetatagGooglePlusTagsTest.php index dda2dbb8f..dc8eea5ad 100644 --- a/web/modules/contrib/metatag/metatag_google_plus/src/Tests/MetatagGooglePlusTagsTest.php +++ b/web/modules/contrib/metatag/metatag_google_plus/src/Tests/MetatagGooglePlusTagsTest.php @@ -2,7 +2,6 @@ namespace Drupal\metatag_google_plus\Tests; -use Drupal\simpletest\WebTestBase; use Drupal\metatag\Tests\MetatagTagsTestBase; /** @@ -15,7 +14,7 @@ class MetatagGooglePlusTagsTest extends MetatagTagsTestBase { /** * {@inheritdoc} */ - public $tags = [ + private $tags = [ 'google_plus_author', 'google_plus_description', 'google_plus_image', @@ -24,9 +23,9 @@ class MetatagGooglePlusTagsTest extends MetatagTagsTestBase { ]; /** - * The attribute to look for to indicate which tag. + * {@inheritdoc} */ - public $test_name_attribute = 'itemprop'; + private $testNameAttribute = 'itemprop'; /** * {@inheritdoc} @@ -39,7 +38,7 @@ class MetatagGooglePlusTagsTest extends MetatagTagsTestBase { /** * Each of these meta tags has a different tag name vs its internal name. */ - public function getTestTagName($tag_name) { + private function getTestTagName($tag_name) { $tag_name = str_replace('google_plus_', 'itemprop:', $tag_name); if ($tag_name == 'itemprop:publisher') { $tag_name = 'publisher'; @@ -48,30 +47,30 @@ class MetatagGooglePlusTagsTest extends MetatagTagsTestBase { } /** - * Implements {meta_tag_name}_test_name_attribute() for 'author'. + * Implements {tag_name}TestNameAttribute() for 'author'. */ - public function google_plus_author_test_output_xpath() { + private function googlePlusAuthorTestOutputXpath() { return "//link[@rel='author']"; } /** - * Implements {meta_tag_name}_test_value_attribute() for 'author'. + * Implements {tag_name}TestValueAttribute() for 'author'. */ - public function google_plus_author_test_value_attribute() { + private function googlePlusAuthorTestValueAttribute() { return 'href'; } /** - * Implements {meta_tag_name}_test_name_attribute() for 'publisher'. + * Implements {tag_name}TestNameAttribute() for 'publisher'. */ - public function google_plus_publisher_test_output_xpath() { + private function googlePlusPublisherTestOutputXpath() { return "//link[@rel='publisher']"; } /** - * Implements {meta_tag_name}_test_value_attribute() for 'publisher'. + * Implements {tag_name}TestValueAttribute() for 'publisher'. */ - public function google_plus_publisher_test_value_attribute() { + private function googlePlusPublisherTestValueAttribute() { return 'href'; }