public function MetatagTagsTestBase::getTestTagValue in Metatag 7
Generate a random value for testing meta tag fields.
As a reasonable default, this will generating two words of 8 characters each with simple machine name -style strings.
Return value
string A normal string.
1 call to MetatagTagsTestBase::getTestTagValue()
- MetatagTagsTestBase::testTagsInputOutput in tests/
MetatagTagsTestBase.test - Confirm that each tag can be saved and that the output of each tag is correct.
2 methods override MetatagTagsTestBase::getTestTagValue()
- MetatagFaviconsTagsTest::getTestTagValue in metatag_favicons/
tests/ MetatagFaviconsTagsTest.test - Generate a random value for testing meta tag fields.
- MetatagHreflangTagsTest::getTestTagValue in metatag_hreflang/
tests/ MetatagHreflangTagsTest.test - Generate a random value for testing meta tag fields.
File
- tests/
MetatagTagsTestBase.test, line 279 - Base class for testing a module's custom tags.
Class
- MetatagTagsTestBase
- Base class for testing a module's custom tags.
Code
public function getTestTagValue() {
return $this
->randomMachineName() . ' ' . $this
->randomMachineName();
}