You are here

public function HelpTopicTwigTest::testDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigTest::testDefinition()
  2. 9 core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigTest::testDefinition()

@covers ::getProvider @covers ::isTopLevel @covers ::getRelated

File

core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php, line 70

Class

HelpTopicTwigTest
Unit test for the HelpTopicTwig class.

Namespace

Drupal\Tests\help_topics\Unit

Code

public function testDefinition() {
  $this
    ->assertEquals($this->helpTopic
    ->getProvider(), self::PLUGIN_INFORMATION['provider']);
  $this
    ->assertEquals($this->helpTopic
    ->isTopLevel(), self::PLUGIN_INFORMATION['top_level']);
  $this
    ->assertEquals($this->helpTopic
    ->getRelated(), self::PLUGIN_INFORMATION['related']);
}