function RulesActionBaseTest::testSummaryParsingTheLabelAnnotation
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());
}