You are here

public function RulesActionBaseTest::testSummaryThrowingException in Rules 8.3

Tests that a missing label throwa 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();
}