public function UiPatternsManagerTest::testGetPattern in UI Patterns 8
Test UiPatternsManager::getPatternDefinition.
@covers ::getPatterns
File
- tests/
src/ Kernel/ UiPatternsManagerTest.php, line 40
Class
- UiPatternsManagerTest
- @coversDefaultClass \Drupal\ui_patterns\UiPatternsManager
Namespace
Drupal\Tests\ui_patterns\KernelCode
public function testGetPattern() {
$manager = UiPatterns::getManager();
$definitions = $manager
->getDefinitions();
foreach ($manager
->getPatterns() as $pattern) {
$this
->assertEquals($definitions[$pattern
->getPluginId()]
->id(), $pattern
->getBaseId());
}
}