You are here

public function SiteAlertCacheTest::pageCacheProvider in Site Alert 8

Provides test cases for ::testPageCache().

Return value

array An array of test cases, each test case an array with a single value: the timeout for AJAX refreshing.

See also

::testPageCache()

File

tests/src/Functional/SiteAlertCacheTest.php, line 176

Class

SiteAlertCacheTest
Tests that the page cache correctly varies on the active site alerts.

Namespace

Drupal\Tests\site_alert\Functional

Code

public function pageCacheProvider() {
  return [
    // Test case using a block that enjoys AJAX refreshments.
    [
      SiteAlertBlock::TIMEOUT_DEFAULT,
    ],
    // Test case using a block with AJAX refreshing of site alerts disabled.
    [
      0,
    ],
  ];
}