PathInvalidationTest.php in Purge 8.3
Namespace
Drupal\Tests\purge\Kernel\InvalidationFile
tests/src/Kernel/Invalidation/PathInvalidationTest.phpView source
<?php
namespace Drupal\Tests\purge\Kernel\Invalidation;
/**
* Tests \Drupal\purge\Plugin\Purge\Invalidation\PathInvalidation.
*
* @group purge
*/
class PathInvalidationTest extends PluginTestBase {
/**
* The plugin ID of the invalidation type being tested.
*
* @var string
*/
protected $pluginId = 'path';
/**
* String expressions valid to the invalidation type being tested.
*
* @var null|mixed[]
*/
protected $expressions = [
'',
'?page=0',
'news',
'news/',
'012/442',
'news/article-1',
'news/article-1?page=0&secondparam=1',
];
/**
* String expressions invalid to the invalidation type being tested.
*
* @var null|mixed[]
*/
protected $expressionsInvalid = [
NULL,
'/news',
'news/*',
'/news/*',
'*',
];
}
Classes
Name![]() |
Description |
---|---|
PathInvalidationTest | Tests \Drupal\purge\Plugin\Purge\Invalidation\PathInvalidation. |