You are here

public function PluginTestBase::testTypeUnsupportedException in Purge 8.3

Tests TypeUnsupportedException.

File

tests/src/Kernel/Invalidation/PluginTestBase.php, line 93

Class

PluginTestBase
Provides an abstract test class to thoroughly test invalidation types.

Namespace

Drupal\Tests\purge\Kernel\Invalidation

Code

public function testTypeUnsupportedException() : void {
  $this
    ->initializePurgersService([], TRUE);
  $this
    ->expectException(TypeUnsupportedException::class);
  $this
    ->getInvalidations(1, $this->pluginId, $this->expressions[0], FALSE);
  $this
    ->getInstance(FALSE);
}