class MTimeProtectedFileStorageTest in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageTest
Tests the MTimeProtectedFileStorage implementation.
@coversDefaultClass \Drupal\Component\PhpStorage\MTimeProtectedFileStorage
@group Drupal @group PhpStorage
Hierarchy
- class \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageBase
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageTest
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageBase
Expanded class hierarchy of MTimeProtectedFileStorageTest
File
- core/
tests/ Drupal/ Tests/ Component/ PhpStorage/ MTimeProtectedFileStorageTest.php, line 13
Namespace
Drupal\Tests\Component\PhpStorageView source
class MTimeProtectedFileStorageTest extends MTimeProtectedFileStorageBase {
/**
* The expected test results for the security test.
*
* The default implementation protects against even the filemtime change so
* both iterations will return FALSE.
*/
protected $expected = [
FALSE,
FALSE,
];
/**
* The PHP storage class to test.
*/
protected $storageClass = 'Drupal\\Component\\PhpStorage\\MTimeProtectedFileStorage';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MTimeProtectedFileStorageBase:: |
protected | property | The secret string to use for file creation. | |
MTimeProtectedFileStorageBase:: |
protected | property | Test settings to pass to storage instances. | |
MTimeProtectedFileStorageBase:: |
protected | function |
Overrides PhpStorageTestBase:: |
|
MTimeProtectedFileStorageBase:: |
public | function | Tests basic load/save/delete operations. | |
MTimeProtectedFileStorageBase:: |
public | function | Tests the security of the MTimeProtectedFileStorage implementation. | |
MTimeProtectedFileStorageTest:: |
protected | property | The expected test results for the security test. | |
MTimeProtectedFileStorageTest:: |
protected | property |
The PHP storage class to test. Overrides MTimeProtectedFileStorageBase:: |
|
PhpStorageTestBase:: |
protected | property | A unique per test class directory path to test php storage. | |
PhpStorageTestBase:: |
protected | function | Additional asserts to be run. | |
PhpStorageTestBase:: |
public | function | Assert that a PHP storage's load/save/delete operations work. |