function LegacyFileModuleTest::testFileProgressDeprecation

Same name in other branches
  1. 10 core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php \Drupal\Tests\file\Kernel\LegacyFileModuleTest::testFileProgressDeprecation()

@covers ::file_progress_implementation

File

core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php, line 25

Class

LegacyFileModuleTest
Tests file module deprecations.

Namespace

Drupal\Tests\file\Kernel

Code

public function testFileProgressDeprecation() {
    $this->expectDeprecation('file_progress_implementation() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use extension_loaded(\'uploadprogress\') instead. See https://www.drupal.org/node/3397577');
    $this->assertFalse(\file_progress_implementation());
}

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