function HelpTopicTwigTest::testText

Tests text.

@legacy-covers ::getBody @legacy-covers ::getLabel

File

core/modules/help/tests/src/Unit/HelpTopicTwigTest.php, line 65

Class

HelpTopicTwigTest
Unit test for the HelpTopicTwig class.

Namespace

Drupal\Tests\help\Unit

Code

public function testText() : void {
  $this->assertEquals($this->helpTopic
    ->getBody(), [
    '#markup' => self::PLUGIN_INFORMATION['body'],
  ]);
  $this->assertEquals($this->helpTopic
    ->getLabel(), self::PLUGIN_INFORMATION['label']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.