You are here

WildcardUrlInvalidationTest.php in Purge 8.3

File

tests/src/Kernel/Invalidation/WildcardUrlInvalidationTest.php
View source
<?php

namespace Drupal\Tests\purge\Kernel\Invalidation;


/**
 * Tests \Drupal\purge\Plugin\Purge\Invalidation\WildcardUrlInvalidation.
 *
 * @group purge
 */
class WildcardUrlInvalidationTest extends PluginTestBase {

  /**
   * The plugin ID of the invalidation type being tested.
   *
   * @var string
   */
  protected $pluginId = 'wildcardurl';

  /**
   * String expressions valid to the invalidation type being tested.
   *
   * @var null|mixed[]
   */
  protected $expressions = [
    'http://www.test.com/*',
    'https://domain/path/*',
  ];

  /**
   * String expressions invalid to the invalidation type being tested.
   *
   * @var null|mixed[]
   */
  protected $expressionsInvalid = [
    NULL,
    '',
    'http:// /aa',
    'http://www.test.com',
    'https://domain/path',
  ];

}