function HelpTopicTwigTest::testText

Same name in other branches
  1. 9 core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigTest::testText()
  2. 8.9.x core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigTest::testText()
  3. 10 core/modules/help/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help\Unit\HelpTopicTwigTest::testText()

@covers ::getBody @covers ::getLabel

File

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

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.