X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fmetatag_open_graph%2Fsrc%2FTests%2FMetatagOpenGraphTagsTest.php;h=af726e8e00d7b077920caf46cf36c33f88b96628;hb=059867c3f96750652c80f39e44c442a58c2549ee;hp=2520933f48ab3c5558116d58ae0870b799fb4462;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/modules/contrib/metatag/metatag_open_graph/src/Tests/MetatagOpenGraphTagsTest.php b/web/modules/contrib/metatag/metatag_open_graph/src/Tests/MetatagOpenGraphTagsTest.php index 2520933f4..af726e8e0 100644 --- a/web/modules/contrib/metatag/metatag_open_graph/src/Tests/MetatagOpenGraphTagsTest.php +++ b/web/modules/contrib/metatag/metatag_open_graph/src/Tests/MetatagOpenGraphTagsTest.php @@ -2,7 +2,6 @@ namespace Drupal\metatag_open_graph\Tests; -use Drupal\simpletest\WebTestBase; use Drupal\metatag\Tests\MetatagTagsTestBase; /** @@ -15,7 +14,7 @@ class MetatagOpenGraphTagsTest extends MetatagTagsTestBase { /** * {@inheritdoc} */ - public $tags = [ + private $tags = [ 'article_author', 'article_expiration_time', 'article_modified_time', @@ -23,12 +22,17 @@ class MetatagOpenGraphTagsTest extends MetatagTagsTestBase { 'article_publisher', 'article_section', 'article_tag', + 'book_author', + 'book_isbn', + 'book_releasedate', + 'book_tag', 'og_country_name', 'og_description', 'og_determiner', 'og_email', 'og_fax_number', 'og_image', + 'og_image_alt', 'og_image_height', 'og_image_secure_url', 'og_image_type', @@ -57,14 +61,14 @@ class MetatagOpenGraphTagsTest extends MetatagTagsTestBase { ]; /** - * The tag to look for when testing the output. + * {@inheritdoc} */ - public $test_tag = 'meta'; + private $testTag = 'meta'; /** - * The attribute to look for to indicate which tag. + * {@inheritdoc} */ - public $test_name_attribute = 'property'; + private $testNameAttribute = 'property'; /** * {@inheritdoc} @@ -77,10 +81,11 @@ class MetatagOpenGraphTagsTest 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) { // Replace the first underline with a colon. $tag_name = str_replace('og_', 'og:', $tag_name); $tag_name = str_replace('article_', 'article:', $tag_name); + $tag_name = str_replace('book_', 'book:', $tag_name); // Some tags have an additional underline that turns into a colon. $tag_name = str_replace('og:image_', 'og:image:', $tag_name);