UrlInvalidationTest.php in Purge 8.3
Namespace
Drupal\Tests\purge\Kernel\InvalidationFile
tests/src/Kernel/Invalidation/UrlInvalidationTest.phpView source
<?php
namespace Drupal\Tests\purge\Kernel\Invalidation;
/**
* Tests \Drupal\purge\Plugin\Purge\Invalidation\UrlInvalidation.
*
* @group purge
*/
class UrlInvalidationTest extends PluginTestBase {
/**
* The plugin ID of the invalidation type being tested.
*
* @var string
*/
protected $pluginId = 'url';
/**
* String expressions valid to the invalidation type being tested.
*
* @var null|mixed[]
*/
protected $expressions = [
'http://www.test.com',
'https://domain/path',
'http://domain/path?param=1',
];
/**
* String expressions invalid to the invalidation type being tested.
*
* @var null|mixed[]
*/
protected $expressionsInvalid = [
NULL,
'',
"35423523",
'http:// /aa',
'http://www.test.com/*',
];
}
Classes
Name![]() |
Description |
---|---|
UrlInvalidationTest | Tests \Drupal\purge\Plugin\Purge\Invalidation\UrlInvalidation. |