You are here

public function MetatagTagsTestBase::randomImageUrl in Metatag 7

Generate a URL for an image.

Return value

string An absolute URL to a non-existant image.

16 calls to MetatagTagsTestBase::randomImageUrl()
MetatagFaviconsTagsTest::getTestTagValue in metatag_favicons/tests/MetatagFaviconsTagsTest.test
Generate a random value for testing meta tag fields.
MetatagGoogleCseTagsTest::thumbnail_test_value in metatag_google_cse/tests/MetatagGoogleCseTagsTest.test
Implements {meta_tag_name}_test_value() for 'thumbnail'.
MetatagGooglePlusTagsTest::itemprop_image_test_value in metatag_google_plus/tests/MetatagGooglePlusTagsTest.test
Implements {meta_tag_name}_test_value() for 'itemprop_image'.
MetatagMobileTagsTest::msapplication_square150x150logo_test_value in metatag_mobile/tests/MetatagMobileTagsTest.test
Implements {meta_tag_name}_test_value() for 'msapplication-square150x150logo'.
MetatagMobileTagsTest::msapplication_square310x310logo_test_value in metatag_mobile/tests/MetatagMobileTagsTest.test
Implements {meta_tag_name}_test_value() for 'msapplication-square310x310logo'.

... See full list

File

tests/MetatagTagsTestBase.test, line 289
Base class for testing a module's custom tags.

Class

MetatagTagsTestBase
Base class for testing a module's custom tags.

Code

public function randomImageUrl() {
  return 'http://www.example.com/images/' . $this
    ->randomMachineName() . '.png';
}