function FileStorageTest::testWritable

@covers ::writeable @group legacy

File

core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php, line 58

Class

FileStorageTest
@coversDefaultClass \Drupal\Component\PhpStorage\FileStorage @group Drupal @group PhpStorage

Namespace

Drupal\Tests\Component\PhpStorage

Code

public function testWritable() : void {
    $this->expectDeprecation('Drupal\\Component\\PhpStorage\\FileStorage::writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413');
    $php = new FileStorage($this->standardSettings);
    $this->assertTrue($php->writeable());
}

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