diff --git a/core/modules/file/tests/src/Kernel/FileUrlTest.php b/core/modules/file/tests/src/Kernel/FileUrlTest.php index 9c11e61557..832b3db83c 100644 --- a/core/modules/file/tests/src/Kernel/FileUrlTest.php +++ b/core/modules/file/tests/src/Kernel/FileUrlTest.php @@ -12,10 +12,9 @@ class FileUrlTest extends FileManagedUnitTestBase { /** - * Test file_create_url(). + * Test public files with a different host name from settings. */ - public function testFileCreateUrl() { - // Test public files with a different host name from settings. + public function testFilesUrlWithDifferentHostName() { $test_base_url = 'http://www.example.com/cdn'; $this->settingsSet('file_public_base_url', $test_base_url); $filepath = file_create_filename('test.txt', ''); @@ -24,15 +23,15 @@ public function testFileCreateUrl() { $file = $this->createFile($filepath, NULL, 'public'); $url = file_create_url($file->getFileUri()); $expected_url = $test_base_url . '/' . basename($filepath); - $this->assertEqual($url, $expected_url); + $this->assertSame($url, $expected_url); } /** * Changes in memory settings. * - * @param $name + * @param string $name * The name of the setting to return. - * @param $value + * @param string $value * The value of the setting. * * @see \Drupal\Core\Site\Settings::get()