MTimeProtectedFileStorageTest.php

Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php
  2. 8.9.x core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php
  3. 10 core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php

Namespace

Drupal\Tests\Component\PhpStorage

File

core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Component\PhpStorage;


/**
 * Tests the MTimeProtectedFileStorage implementation.
 *
 * @coversDefaultClass \Drupal\Component\PhpStorage\MTimeProtectedFileStorage
 *
 * @group Drupal
 * @group PhpStorage
 */
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.
   *
   * @var bool[]
   */
  protected array $expected = [
    FALSE,
    FALSE,
  ];
  
  /**
   * The PHP storage class to test.
   *
   * @var class-string
   */
  protected $storageClass = 'Drupal\\Component\\PhpStorage\\MTimeProtectedFileStorage';

}

Classes

Title Deprecated Summary
MTimeProtectedFileStorageTest Tests the MTimeProtectedFileStorage implementation.

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