MTimeProtectedFileStorageTest::$expected

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageTest::expected
  2. 8.9.x core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageTest::expected
  3. 10 core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php \Drupal\Tests\Component\PhpStorage\MTimeProtectedFileStorageTest::expected

The expected test results for the security test.

The default implementation protects against even the filemtime change so both iterations will return FALSE.

Type: expected

Overrides MTimeProtectedFileStorageBase::$expected

File

core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php, line 23

Class

MTimeProtectedFileStorageTest
Tests the MTimeProtectedFileStorage implementation.

Namespace

Drupal\Tests\Component\PhpStorage

Code

protected array $expected = [
    FALSE,
    FALSE,
];

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