class FileStorageDeprecationTest
Tests FileStorage deprecations.
@coversDefaultClass \Drupal\Component\PhpStorage\FileStorage @group legacy @group Drupal @group PhpStorage
Hierarchy
- class \Drupal\Tests\Component\PhpStorage\FileStorageDeprecationTest extends \PHPUnit\Framework\TestCase
Expanded class hierarchy of FileStorageDeprecationTest
File
-
core/
tests/ Drupal/ Tests/ Component/ PhpStorage/ FileStorageDeprecationTest.php, line 16
Namespace
Drupal\Tests\Component\PhpStorageView source
class FileStorageDeprecationTest extends TestCase {
/**
* @expectedDeprecation htaccessLines() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Component\FileSecurity\FileSecurity::htaccessLines() instead. See https://www.drupal.org/node/3075098
*/
public function testHtAccessLines() {
$this->assertNotEmpty(FileStorage::htaccessLines());
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FileStorageDeprecationTest::testHtAccessLines | public | function | @expectedDeprecation htaccessLines() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Component\FileSecurity\FileSecurity::htaccessLines() instead. See https://www.drupal.org/node/3075098 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.