You are here

protected function MetatagTagsTestBase::randomImageUrl in Metatag 8

Generate a URL for an image.

Return value

string An absolute URL to a non-existent image.

5 calls to MetatagTagsTestBase::randomImageUrl()
MetatagMobileTagsTest::msapplicationSquare150x150logoTestValue in metatag_mobile/tests/src/Functional/MetatagMobileTagsTest.php
Implements {tag_name}TestValue() for 'msapplication-square150x150logo'.
MetatagMobileTagsTest::msapplicationSquare310x310logoTestValue in metatag_mobile/tests/src/Functional/MetatagMobileTagsTest.php
Implements {tag_name}TestValue() for 'msapplication-square310x310logo'.
MetatagMobileTagsTest::msapplicationSquare70x70logoTestValue in metatag_mobile/tests/src/Functional/MetatagMobileTagsTest.php
Implements {tag_name}TestValue() for 'msapplication-square70x70logo'.
MetatagMobileTagsTest::msapplicationTileimageTestValue in metatag_mobile/tests/src/Functional/MetatagMobileTagsTest.php
Implements {tag_name}TestValue() for 'msapplication-tileimage'.
MetatagMobileTagsTest::msapplicationWide310x150logoTestValue in metatag_mobile/tests/src/Functional/MetatagMobileTagsTest.php
Implements {tag_name}TestValue() for 'msapplication-wide310x150logo'.

File

tests/src/Functional/MetatagTagsTestBase.php, line 336

Class

MetatagTagsTestBase
Base class to test all of the meta tags that are in a specific module.

Namespace

Drupal\Tests\metatag\Functional

Code

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