Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / metatag / metatag_mobile / src / Tests / MetatagMobileTagsTest.php
index 0baaeeb606eca908d3563ef0dcd2dac8f2b28222..4287449624f4eb5f8c75df9b25b4289cc7f6034b 100644 (file)
@@ -46,6 +46,7 @@ class MetatagMobileTagsTest extends MetatagTagsTestBase {
     'msapplication_window',
     'theme_color',
     'viewport',
+    'web_manifest',
     'x_ua_compatible',
   ];
 
@@ -114,8 +115,9 @@ class MetatagMobileTagsTest extends MetatagTagsTestBase {
   }
 
   /**
-   * Implements {tag_name}TestValueAttribute() for
-   * 'android-app-link-alternative'.
+   * Implements {tag_name}TestValueAttribute().
+   *
+   * For 'android-app-link-alternative'.
    */
   private function androidAppLinkAlternativeTestValueAttribute() {
     return 'href';
@@ -212,6 +214,20 @@ class MetatagMobileTagsTest extends MetatagTagsTestBase {
     return $this->randomImageUrl();
   }
 
+  /**
+   * Implements {tag_name}TestOutputXpath() for 'web_manifest'.
+   */
+  private function webManifestTestOutputXpath() {
+    return "//link[@rel='manifest']";
+  }
+
+  /**
+   * Implements {tag_name}TestValueAttribute() for 'web_manifest'.
+   */
+  private function webManifestTestValueAttribute() {
+    return 'href';
+  }
+
   /**
    * Implements {tag_name}TestNameAttribute() for 'x-ua-compatible'.
    */