function SystemFunctionsLegacyTest::testSystemRetrieveFile

@covers ::system_retrieve_file

File

core/modules/system/tests/src/Kernel/System/SystemFunctionsLegacyTest.php, line 37

Class

SystemFunctionsLegacyTest
Tests the deprecations in the system module.

Namespace

Drupal\Tests\system\Kernel\System

Code

public function testSystemRetrieveFile() : void {
    $this->expectDeprecation('system_retrieve_file is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3223362');
    $retrieved_file = system_retrieve_file('http://example.com/foo.txt');
    $this->assertFalse($retrieved_file);
}

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