projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated all the contrib modules to their latest versions.
[yaffs-website]
/
web
/
modules
/
contrib
/
metatag
/
metatag_favicons
/
src
/
Tests
/
MetatagFaviconsTagsTest.php
diff --git
a/web/modules/contrib/metatag/metatag_favicons/src/Tests/MetatagFaviconsTagsTest.php
b/web/modules/contrib/metatag/metatag_favicons/src/Tests/MetatagFaviconsTagsTest.php
index c44ff78401a72ff9fdd4eac54a640c8e13dfc95b..04f588505440e09dfc1ffcbe77cfbd4d29015828 100644
(file)
--- a/
web/modules/contrib/metatag/metatag_favicons/src/Tests/MetatagFaviconsTagsTest.php
+++ b/
web/modules/contrib/metatag/metatag_favicons/src/Tests/MetatagFaviconsTagsTest.php
@@
-2,7
+2,6
@@
namespace Drupal\metatag_favicons\Tests;
namespace Drupal\metatag_favicons\Tests;
-use Drupal\simpletest\WebTestBase;
use Drupal\metatag\Tests\MetatagTagsTestBase;
/**
use Drupal\metatag\Tests\MetatagTagsTestBase;
/**
@@
-15,9
+14,9
@@
class MetatagFaviconsTagsTest extends MetatagTagsTestBase {
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
- p
ublic
$tags = [
+ p
rivate
$tags = [
'shortcut_icon',
'shortcut_icon',
- //
'mask_icon',
+ //
'mask_icon'.
'icon_16x16',
'icon_32x32',
'icon_96x96',
'icon_16x16',
'icon_32x32',
'icon_96x96',
@@
-43,17
+42,17
@@
class MetatagFaviconsTagsTest extends MetatagTagsTestBase {
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
- p
ublic $test_t
ag = 'link';
+ p
rivate $testT
ag = 'link';
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
- p
ublic $test_name_a
ttribute = 'rel';
+ p
rivate $testNameA
ttribute = 'rel';
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
- p
ublic $test_value_a
ttribute = 'href';
+ p
rivate $testValueA
ttribute = 'href';
/**
* {@inheritdoc}
/**
* {@inheritdoc}
@@
-64,179
+63,177
@@
class MetatagFaviconsTagsTest extends MetatagTagsTestBase {
}
/**
}
/**
- * Implements {meta_tag_name}_test_value_attribute() for
- * 'shortcut icon'.
+ * Implements {tag_name}TestValueAttribute() for 'shortcut icon'.
*/
*/
- p
ublic function shortcut_icon_test_value_a
ttribute() {
+ p
rivate function shortcutIconTestValueA
ttribute() {
return 'href';
}
/**
return 'href';
}
/**
- * Implements {
meta_tag_name}_test_output_xpath() for 'icon_16x16',
+ * Implements {
tag_name}TestOutputXpath() for 'icon_16x16'.
*/
*/
- p
ublic function icon_16x16_test_output_x
path() {
+ p
rivate function icon16x16TestOutputX
path() {
return "//link[@rel='icon' and @sizes='16x16']";
}
/**
return "//link[@rel='icon' and @sizes='16x16']";
}
/**
- * Implements {
meta_tag_name}_test_output_xpath() for 'icon_192x192',
+ * Implements {
tag_name}TestOutputXpath() for 'icon_192x192'.
*/
*/
- p
ublic function icon_192x192_test_output_x
path() {
+ p
rivate function icon192x192TestOutputX
path() {
return "//link[@rel='icon' and @sizes='192x192']";
}
/**
return "//link[@rel='icon' and @sizes='192x192']";
}
/**
- * Implements {
meta_tag_name}_test_output_xpath() for 'icon_32x32',
+ * Implements {
tag_name}TestOutputXpath() for 'icon_32x32'.
*/
*/
- p
ublic function icon_32x32_test_output_x
path() {
+ p
rivate function icon32x32TestOutputX
path() {
return "//link[@rel='icon' and @sizes='32x32']";
}
/**
return "//link[@rel='icon' and @sizes='32x32']";
}
/**
- * Implements {
meta_tag_name}_test_output_xpath() for 'icon_96x96',
+ * Implements {
tag_name}TestOutputXpath() for 'icon_96x96'.
*/
*/
- p
ublic function icon_96x96_test_output_x
path() {
+ p
rivate function icon96x96TestOutputX
path() {
return "//link[@rel='icon' and @sizes='96x96']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_precomposed_test_output_x
path() {
+ p
rivate function appleTouchIconPrecomposedTestOutputX
path() {
return "//link[@rel='apple-touch-icon-precomposed' and not(@sizes)]";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_precomposed_114x114_test_output_x
path() {
+ p
rivate function appleTouchIconPrecomposed114x114TestOutputX
path() {
return "//link[@rel='apple-touch-icon-precomposed' and @sizes='114x114']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_precomposed_120x120_test_output_x
path() {
+ p
rivate function appleTouchIconPrecomposed120x120TestOutputX
path() {
return "//link[@rel='apple-touch-icon-precomposed' and @sizes='120x120']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_precomposed_144x144_test_output_x
path() {
+ p
rivate function appleTouchIconPrecomposed144x144TestOutputX
path() {
return "//link[@rel='apple-touch-icon-precomposed' and @sizes='144x144']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_precomposed_152x152_test_output_x
path() {
+ p
rivate function appleTouchIconPrecomposed152x152TestOutputX
path() {
return "//link[@rel='apple-touch-icon-precomposed' and @sizes='152x152']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_precomposed_180x180_test_output_x
path() {
+ p
rivate function appleTouchIconPrecomposed180x180TestOutputX
path() {
return "//link[@rel='apple-touch-icon-precomposed' and @sizes='180x180']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_precomposed_72x72_test_output_x
path() {
+ p
rivate function appleTouchIconPrecomposed72x72TestOutputX
path() {
return "//link[@rel='apple-touch-icon-precomposed' and @sizes='72x72']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_precomposed_76x76_test_output_x
path() {
+ p
rivate function appleTouchIconPrecomposed76x76TestOutputX
path() {
return "//link[@rel='apple-touch-icon-precomposed' and @sizes='76x76']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_test_output_x
path() {
+ p
rivate function appleTouchIconTestOutputX
path() {
return "//link[@rel='apple-touch-icon' and not(@sizes)]";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_114x114_test_output_x
path() {
+ p
rivate function appleTouchIcon114x114TestOutputX
path() {
return "//link[@rel='apple-touch-icon' and @sizes='114x114']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_120x120_test_output_x
path() {
+ p
rivate function appleTouchIcon120x120TestOutputX
path() {
return "//link[@rel='apple-touch-icon' and @sizes='120x120']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_144x144_test_output_x
path() {
+ p
rivate function appleTouchIcon144x144TestOutputX
path() {
return "//link[@rel='apple-touch-icon' and @sizes='144x144']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_152x152_test_output_x
path() {
+ p
rivate function appleTouchIcon152x152TestOutputX
path() {
return "//link[@rel='apple-touch-icon' and @sizes='152x152']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_180x180_test_output_x
path() {
+ p
rivate function appleTouchIcon180x180TestOutputX
path() {
return "//link[@rel='apple-touch-icon' and @sizes='180x180']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_72x72_test_output_x
path() {
+ p
rivate function appleTouchIcon72x72TestOutputX
path() {
return "//link[@rel='apple-touch-icon' and @sizes='72x72']";
}
/**
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'.
*/
*/
- p
ublic function apple_touch_icon_76x76_test_output_x
path() {
+ p
rivate function appleTouchIcon76x76TestOutputX
path() {
return "//link[@rel='apple-touch-icon' and @sizes='76x76']";
}
/**
return "//link[@rel='apple-touch-icon' and @sizes='76x76']";
}
/**
- * Implements {
meta_tag_name}_test_output_x
path for 'mask-icon'.
+ * Implements {
tag_name}TestOutputX
path for 'mask-icon'.
*/
*/
- p
ublic function mask_icon_test_tag_n
ame() {
+ p
rivate function maskIconTestTagN
ame() {
return 'mask-icon';
}
/**
return 'mask-icon';
}
/**
- * Implements {
meta_tag_name}_test_tag_n
ame for 'shortcut icon'.
+ * Implements {
tag_name}TestTagN
ame for 'shortcut icon'.
*/
*/
- p
ublic function shortcut_icon_test_tag_n
ame() {
+ p
rivate function shortcutIconTestTagN
ame() {
return 'shortcut icon';
}
return 'shortcut icon';
}