class MTimeProtectedFastFileStorageTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\UnitTestCase extends \Drupal\Tests\PHPUnit_Framework_TestCase
- class \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageBase
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFastFileStorageTest
- class \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageBase
- class \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase
Expanded class hierarchy of MTimeProtectedFastFileStorageTest
File
- core/
tests/ Drupal/ Tests/ Component/ PhpStorage/ MTimeProtectedFastFileStorageTest.php, line 18 - Contains \Drupal\Tests\Component\PhpStorage\MTimeProtectedFastFileStorageTest.
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 = array(
TRUE,
FALSE,
);
/**
* The PHP storage class to test.
*/
protected $storageClass = 'Drupal\\Component\\PhpStorage\\MTimeProtectedFastFileStorage';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MTimeProtectedFastFileStorageTest:: |
protected | property | The expected test results for the security test. | |
MTimeProtectedFastFileStorageTest:: |
protected | property |
The PHP storage class to test. Overrides MTimeProtectedFileStorageBase:: |
|
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. | |
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. | |
UnitTestCase:: |
protected | property | The random generator. | |
UnitTestCase:: |
protected | property | The app root. | |
UnitTestCase:: |
protected | function | Asserts if two arrays are equal by sorting them first. | |
UnitTestCase:: |
protected | function | Mocks a block with a block plugin. | |
UnitTestCase:: |
protected | function | Returns a stub class resolver. | |
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:: |
protected | function | Sets up a container with a cache tags invalidator. | |
UnitTestCase:: |
protected | function | Gets the random generator for the utility methods. | |
UnitTestCase:: |
public | function | Returns a stub translation manager that just returns the passed string. | |
UnitTestCase:: |
public | function | Generates a unique random string containing letters and numbers. |