function DesignTokenPluginManagerTest::testExtractDefinitions
Same name and namespace in other branches
- main core/tests/Drupal/Tests/Core/Theme/DesignToken/DesignTokenPluginManagerTest.php \Drupal\Tests\Core\Theme\DesignToken\DesignTokenPluginManagerTest::testExtractDefinitions()
Tests extractDefinitions.
Attributes
#[DataProvider('providerExtractDefinitions')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ DesignTokenPluginManagerTest.php, line 401
Class
- DesignTokenPluginManagerTest
- Tests design token plugin manager.
Namespace
Drupal\Tests\Core\Theme\DesignTokenCode
public function testExtractDefinitions(array $discovered, array $expected) : void {
$reflection = new \ReflectionClass($this->designTokenPluginManager);
$method = $reflection->getMethod('extractDefinitions');
$this->assertEquals($expected, $method->invoke($this->designTokenPluginManager, $discovered));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.