function IconsTwigExtensionTest::testGetFunctions
Test the IconsTwigExtension::getFunctions method.
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ IconsTwigExtensionTest.php, line 34
Class
- IconsTwigExtensionTest
- @coversDefaultClass \Drupal\Core\Template\IconsTwigExtension
Namespace
Drupal\Tests\Core\Theme\IconCode
public function testGetFunctions() : void {
$functions = $this->iconsTwigExtension
->getFunctions();
$this->assertCount(1, $functions);
$this->assertEquals('icon', $functions[0]->getName());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.