You are here

class TokenTypeTest in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/tests/src/Unit/Token/TokenTypeTest.php \Drupal\Tests\core_event_dispatcher\Unit\Token\TokenTypeTest

Class TokenTypeTest.

@group hook_event_dispatcher

Hierarchy

  • class \Drupal\Tests\core_event_dispatcher\Unit\Token\TokenTypeTest extends \PHPUnit\Framework\TestCase

Expanded class hierarchy of TokenTypeTest

File

modules/core_event_dispatcher/tests/src/Unit/Token/TokenTypeTest.php, line 14

Namespace

Drupal\Tests\core_event_dispatcher\Unit\Token
View source
class TokenTypeTest extends TestCase {

  /**
   * Test TokenType invalid name exception.
   */
  public function testTokenTypeInvalidNameException() : void {
    $this
      ->expectException(UnexpectedValueException::class);
    TokenType::create('', NULL);
  }

  /**
   * Test TokenType invalid description exception.
   */
  public function testTokenTypeInvalidDescriptionException() : void {
    $this
      ->expectException(UnexpectedValueException::class);
    TokenType::create('', '')
      ->setDescription(NULL);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TokenTypeTest::testTokenTypeInvalidDescriptionException public function Test TokenType invalid description exception.
TokenTypeTest::testTokenTypeInvalidNameException public function Test TokenType invalid name exception.