function FileSystemDeprecationTest::testDeprecatedFileBuildUri

Tests deprecated file_build_uri()

File

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

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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.