You are here

public function FileSystemDeprecationTest::testDeprecatedFileBuildUri in Drupal 9

Tests deprecated file_build_uri()

File

core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php, line 29

Class

FileSystemDeprecationTest
Tests deprecations in file.inc.

Namespace

Drupal\KernelTests\Core\File

Code

public function testDeprecatedFileBuildUri() {
  $this
    ->expectDeprecation('file_build_uri() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0 without replacement. See https://www.drupal.org/node/3223091');
  $this
    ->assertEquals('public://foo/bar.txt', file_build_uri('foo/bar.txt'));
}