You are here

TagInvalidationTest.php in Purge 8.3

File

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

namespace Drupal\Tests\purge\Kernel\Invalidation;


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

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

  /**
   * String expressions valid to the invalidation type being tested.
   *
   * @var null|mixed[]
   */
  protected $expressions = [
    'tag',
    'user:1',
    'menu:footer',
  ];

  /**
   * String expressions invalid to the invalidation type being tested.
   *
   * @var null|mixed[]
   */
  protected $expressionsInvalid = [
    NULL,
    '',
    [
      'node',
      '1',
    ],
    'wildtag:*',
  ];

}