public function RulesActionBaseTest::testSummaryParsingTheLabelAnnotation in Rules 8.3
Tests that the summary is being parsed from the label annotation.
@covers ::summary
File
- tests/
src/ Unit/ RulesActionBaseTest.php, line 36
Class
- RulesActionBaseTest
- @coversDefaultClass \Drupal\rules\Core\RulesActionBase @group Rules
Namespace
Drupal\Tests\rules\UnitCode
public function testSummaryParsingTheLabelAnnotation() {
$rules_action_base = $this
->getMockForAbstractClass(RulesActionBase::class, [
[],
'',
[
'label' => 'something',
],
]);
$this
->assertEquals('something', $rules_action_base
->summary());
}