function RulesActionBaseTest::testSummaryThrowingException

Tests that a missing label throws an exception.

@covers ::summary

File

tests/src/Unit/RulesActionBaseTest.php, line 20

Class

RulesActionBaseTest
@coversDefaultClass \Drupal\rules\Core\RulesActionBase @group Rules

Namespace

Drupal\Tests\rules\Unit

Code

public function testSummaryThrowingException() {
    // Set the expected exception class. There is no message to check for.
    $this->expectException(InvalidPluginDefinitionException::class);
    $rules_action_base = $this->getMockForAbstractClass(RulesActionBase::class, [
        [],
        '',
        '',
    ]);
    $rules_action_base->summary();
}