Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / metatag_google_plus / src / Tests / MetatagGooglePlusTagsTest.php
index dda2dbb8f572915265542692bf7dc25f144b1e85..dc8eea5add2d5d05aa0c850cb84782bd7f0fcd89 100644 (file)
@@ -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';
   }