You are here

protected function FileUrlFieldItemListTest::getRandomUrl in File URL 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Kernel/FileUrlFieldItemListTest.php \Drupal\Tests\file_url\Kernel\FileUrlFieldItemListTest::getRandomUrl()

Returns a random URL.

Return value

string The random URL.

1 call to FileUrlFieldItemListTest::getRandomUrl()
FileUrlFieldItemListTest::setUp in tests/src/Kernel/FileUrlFieldItemListTest.php
Set the default field storage backend for fields created during tests.

File

tests/src/Kernel/FileUrlFieldItemListTest.php, line 139

Class

FileUrlFieldItemListTest
Tests the overridden field item list.

Namespace

Drupal\Tests\file_url\Kernel

Code

protected function getRandomUrl() {
  return 'http://example.com/' . $this
    ->randomMachineName();
}