class MTimeProtectedFastFileStorageTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFastFileStorageTest.php \Drupal\Tests\Component\PhpStorage\MTimeProtectedFastFileStorageTest
Tests the MTimeProtectedFastFileStorage implementation.
@coversDefaultClass \Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage
@group Drupal @group PhpStorage
Hierarchy
- class \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase implements \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageBase implements \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFastFileStorageTest implements \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageBase
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageBase implements \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase
Expanded class hierarchy of MTimeProtectedFastFileStorageTest
File
-
core/
tests/ Drupal/ Tests/ Component/ PhpStorage/ MTimeProtectedFastFileStorageTest.php, line 13
Namespace
Drupal\Tests\Component\PhpStorageView source
class MTimeProtectedFastFileStorageTest extends MTimeProtectedFileStorageBase {
/**
* The expected test results for the security test.
*
* The first iteration does not change the directory mtime so this class will
* include the hacked file on the first try but the second test will change
* the directory mtime and so on the second try the file will not be included.
*/
protected $expected = [
TRUE,
FALSE,
];
/**
* The PHP storage class to test.
*/
protected $storageClass = 'Drupal\\Component\\PhpStorage\\MTimeProtectedFastFileStorage';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.