RegularExpressionInvalidationTest.php in Purge 8.3
Namespace
Drupal\Tests\purge\Kernel\InvalidationFile
tests/src/Kernel/Invalidation/RegularExpressionInvalidationTest.phpView source
<?php
namespace Drupal\Tests\purge\Kernel\Invalidation;
/**
* Tests \Drupal\purge\Plugin\Purge\Invalidation\RegularExpressionInvalidation.
*
* @group purge
*/
class RegularExpressionInvalidationTest extends PluginTestBase {
/**
* The plugin ID of the invalidation type being tested.
*
* @var string
*/
protected $pluginId = 'regex';
/**
* String expressions valid to the invalidation type being tested.
*
* @var null|mixed[]
*/
protected $expressions = [
'\\.(jpg|jpeg|css|js)$',
];
/**
* String expressions invalid to the invalidation type being tested.
*
* @var null|mixed[]
*/
protected $expressionsInvalid = [
NULL,
'',
];
}