function HelpTopicTwigTest::testDefinition
Same name and namespace in other branches
- 11.x core/modules/help/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help\Unit\HelpTopicTwigTest::testDefinition()
- 10 core/modules/help/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help\Unit\HelpTopicTwigTest::testDefinition()
- 9 core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigTest::testDefinition()
- 8.9.x core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigTest::testDefinition()
Tests definition.
@legacy-covers ::getProvider @legacy-covers ::isTopLevel @legacy-covers ::getRelated
File
-
core/
modules/ help/ tests/ src/ Unit/ HelpTopicTwigTest.php, line 79
Class
- HelpTopicTwigTest
- Unit test for the HelpTopicTwig class.
Namespace
Drupal\Tests\help\UnitCode
public function testDefinition() : void {
$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']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.