Tests the directory mtime based PHP loader implementation.
Expanded class hierarchy of MTimeProtectedFastFileStorageTest
class MTimeProtectedFastFileStorageTest extends MTimeProtectedFileStorageTest {
/**
* 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 = array(
TRUE,
FALSE,
);
/**
* Test this class.
*/
protected $storageClass = 'Drupal\\Component\\PhpStorage\\MTimeProtectedFastFileStorage';
public static function getInfo() {
return array(
'name' => 'MTime protected fast file storage',
'description' => 'Tests the MTimeProtectedFastFileStorage implementation.',
'group' => 'PHP Storage',
);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MTimeProtectedFastFileStorageTest:: |
protected | property |
The expected test results for the security test. Overrides MTimeProtectedFileStorageTest:: |
|
MTimeProtectedFastFileStorageTest:: |
protected | property |
Test this class. Overrides MTimeProtectedFileStorageTest:: |
|
MTimeProtectedFastFileStorageTest:: |
public static | function |
This method exists to support the simpletest UI runner. Overrides MTimeProtectedFileStorageTest:: |
|
MTimeProtectedFileStorageTest:: |
function |
Overrides \Drupal\Tests\UnitTestCase::setUp() Overrides PhpStorageTestBase:: |
||
MTimeProtectedFileStorageTest:: |
function | Tests basic load/save/delete operations. | ||
MTimeProtectedFileStorageTest:: |
function | Tests the security of the MTimeProtectedFileStorage implementation. | ||
PhpStorageTestBase:: |
protected | property | The storage factory object. | |
PhpStorageTestBase:: |
public | function | Assert that a PHP storage controller's load/save/delete operations work. | |
UnitTestCase:: |
public | function | Returns a stub config factory that behaves according to the passed in array. | |
UnitTestCase:: |
public | function | Returns a stub config storage that returns the supplied configuration. | |
UnitTestCase:: |
public static | function | Generates a random string containing letters and numbers. |