Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / metatag_favicons / src / Tests / MetatagFaviconsTagsTest.php
index c44ff78401a72ff9fdd4eac54a640c8e13dfc95b..02e1ba231a23acf04981b3c82c0216b80084efed 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Drupal\metatag_favicons\Tests;
 
-use Drupal\simpletest\WebTestBase;
 use Drupal\metatag\Tests\MetatagTagsTestBase;
 
 /**
@@ -15,9 +14,9 @@ class MetatagFaviconsTagsTest extends MetatagTagsTestBase {
   /**
    * {@inheritdoc}
    */
-  public $tags = [
+  private $tags = [
     'shortcut_icon',
-    //'mask_icon',
+    // 'mask_icon'.
     'icon_16x16',
     'icon_32x32',
     'icon_96x96',
@@ -43,17 +42,17 @@ class MetatagFaviconsTagsTest extends MetatagTagsTestBase {
   /**
    * {@inheritdoc}
    */
-  public $test_tag = 'link';
+  private $testTag = 'link';
 
   /**
    * {@inheritdoc}
    */
-  public $test_name_attribute = 'rel';
+  private $testNameAttribute = 'rel';
 
   /**
    * {@inheritdoc}
    */
-  public $test_value_attribute = 'href';
+  private $testValueAttribute = 'href';
 
   /**
    * {@inheritdoc}
@@ -64,179 +63,170 @@ class MetatagFaviconsTagsTest extends MetatagTagsTestBase {
   }
 
   /**
-   * Implements {meta_tag_name}_test_value_attribute() for
-   * 'shortcut icon'.
+   * Implements {tag_name}TestValueAttribute() for 'shortcut icon'.
    */
-  public function shortcut_icon_test_value_attribute() {
+  private function shortcutIconTestValueAttribute() {
     return 'href';
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for 'icon_16x16',
+   * Implements {tag_name}TestOutputXpath() for 'icon_16x16'.
    */
-  public function icon_16x16_test_output_xpath() {
+  private function icon16x16TestOutputXpath() {
     return "//link[@rel='icon' and @sizes='16x16']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for 'icon_192x192',
+   * Implements {tag_name}TestOutputXpath() for 'icon_192x192'.
    */
-  public function icon_192x192_test_output_xpath() {
+  private function icon192x192TestOutputXpath() {
     return "//link[@rel='icon' and @sizes='192x192']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for 'icon_32x32',
+   * Implements {tag_name}TestOutputXpath() for 'icon_32x32'.
    */
-  public function icon_32x32_test_output_xpath() {
+  private function icon32x32TestOutputXpath() {
     return "//link[@rel='icon' and @sizes='32x32']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for 'icon_96x96',
+   * Implements {tag_name}TestOutputXpath() for 'icon_96x96'.
    */
-  public function icon_96x96_test_output_xpath() {
+  private function icon96x96TestOutputXpath() {
     return "//link[@rel='icon' and @sizes='96x96']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_precomposed',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon_precomposed'.
    */
-  public function apple_touch_icon_precomposed_test_output_xpath() {
+  private function appleTouchIconPrecomposedTestOutputXpath() {
     return "//link[@rel='apple-touch-icon-precomposed' and not(@sizes)]";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_precomposed_114x114',
+   * Implements {tag_name}TestOutputXpath() for
+   * 'apple_touch_icon_precomposed_114x114'.
    */
-  public function apple_touch_icon_precomposed_114x114_test_output_xpath() {
+  private function appleTouchIconPrecomposed114x114TestOutputXpath() {
     return "//link[@rel='apple-touch-icon-precomposed' and @sizes='114x114']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_precomposed_120x120',
+   * Implements {tag_name}TestOutputXpath() for
+   * 'apple_touch_icon_precomposed_120x120'.
    */
-  public function apple_touch_icon_precomposed_120x120_test_output_xpath() {
+  private function appleTouchIconPrecomposed120x120TestOutputXpath() {
     return "//link[@rel='apple-touch-icon-precomposed' and @sizes='120x120']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_precomposed_144x144',
+   * Implements {tag_name}TestOutputXpath() for
+   * 'apple_touch_icon_precomposed_144x144'.
    */
-  public function apple_touch_icon_precomposed_144x144_test_output_xpath() {
+  private function appleTouchIconPrecomposed144x144TestOutputXpath() {
     return "//link[@rel='apple-touch-icon-precomposed' and @sizes='144x144']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_precomposed_152x152',
+   * Implements {tag_name}TestOutputXpath() for
+   * 'apple_touch_icon_precomposed_152x152'.
    */
-  public function apple_touch_icon_precomposed_152x152_test_output_xpath() {
+  private function appleTouchIconPrecomposed152x152TestOutputXpath() {
     return "//link[@rel='apple-touch-icon-precomposed' and @sizes='152x152']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_precomposed_180x180',
+   * Implements {tag_name}TestOutputXpath() for
+   * 'apple_touch_icon_precomposed_180x180'.
    */
-  public function apple_touch_icon_precomposed_180x180_test_output_xpath() {
+  private function appleTouchIconPrecomposed180x180TestOutputXpath() {
     return "//link[@rel='apple-touch-icon-precomposed' and @sizes='180x180']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_precomposed_72x72',
+   * Implements {tag_name}TestOutputXpath() for
+   * 'apple_touch_icon_precomposed_72x72'.
    */
-  public function apple_touch_icon_precomposed_72x72_test_output_xpath() {
+  private function appleTouchIconPrecomposed72x72TestOutputXpath() {
     return "//link[@rel='apple-touch-icon-precomposed' and @sizes='72x72']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_precomposed_76x76',
+   * Implements {tag_name}TestOutputXpath() for
+   * 'apple_touch_icon_precomposed_76x76'.
    */
-  public function apple_touch_icon_precomposed_76x76_test_output_xpath() {
+  private function appleTouchIconPrecomposed76x76TestOutputXpath() {
     return "//link[@rel='apple-touch-icon-precomposed' and @sizes='76x76']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for 'apple_touch_icon',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon'.
    */
-  public function apple_touch_icon_test_output_xpath() {
+  private function appleTouchIconTestOutputXpath() {
     return "//link[@rel='apple-touch-icon' and not(@sizes)]";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_114x114',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon_114x114'.
    */
-  public function apple_touch_icon_114x114_test_output_xpath() {
+  private function appleTouchIcon114x114TestOutputXpath() {
     return "//link[@rel='apple-touch-icon' and @sizes='114x114']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_120x120',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon_120x120'.
    */
-  public function apple_touch_icon_120x120_test_output_xpath() {
+  private function appleTouchIcon120x120TestOutputXpath() {
     return "//link[@rel='apple-touch-icon' and @sizes='120x120']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_144x144',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon_144x144'.
    */
-  public function apple_touch_icon_144x144_test_output_xpath() {
+  private function appleTouchIcon144x144TestOutputXpath() {
     return "//link[@rel='apple-touch-icon' and @sizes='144x144']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_152x152',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon_152x152'.
    */
-  public function apple_touch_icon_152x152_test_output_xpath() {
+  private function appleTouchIcon152x152TestOutputXpath() {
     return "//link[@rel='apple-touch-icon' and @sizes='152x152']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_180x180',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon_180x180'.
    */
-  public function apple_touch_icon_180x180_test_output_xpath() {
+  private function appleTouchIcon180x180TestOutputXpath() {
     return "//link[@rel='apple-touch-icon' and @sizes='180x180']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_72x72',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon_72x72'.
    */
-  public function apple_touch_icon_72x72_test_output_xpath() {
+  private function appleTouchIcon72x72TestOutputXpath() {
     return "//link[@rel='apple-touch-icon' and @sizes='72x72']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath() for
-   * 'apple_touch_icon_76x76',
+   * Implements {tag_name}TestOutputXpath() for 'apple_touch_icon_76x76'.
    */
-  public function apple_touch_icon_76x76_test_output_xpath() {
+  private function appleTouchIcon76x76TestOutputXpath() {
     return "//link[@rel='apple-touch-icon' and @sizes='76x76']";
   }
 
   /**
-   * Implements {meta_tag_name}_test_output_xpath for 'mask-icon'.
+   * Implements {tag_name}TestOutputXpath for 'mask-icon'.
    */
-  public function mask_icon_test_tag_name() {
+  private function maskIconTestTagName() {
     return 'mask-icon';
   }
 
   /**
-   * Implements {meta_tag_name}_test_tag_name for 'shortcut icon'.
+   * Implements {tag_name}TestTagName for 'shortcut icon'.
    */
-  public function shortcut_icon_test_tag_name() {
+  private function shortcutIconTestTagName() {
     return 'shortcut icon';
   }