public function YamlDeriverTest::testGetDerivativeDefinitions in UI Patterns 8
Test get derivative definitions.
@covers ::getDerivativeDefinitions
File
- tests/
src/ Kernel/ Plugin/ Deriver/ YamlDeriverTest.php, line 41
Class
- YamlDeriverTest
- @coversDefaultClass \Drupal\ui_patterns\Plugin\Deriver\AbstractYamlPatternsDeriver
Namespace
Drupal\Tests\ui_patterns\Kernel\Plugin\DeriverCode
public function testGetDerivativeDefinitions() {
UiPatterns::getManager()
->clearCachedDefinitions();
foreach (UiPatterns::getManager()
->getDefinitions() as $definition) {
$this
->assertNotEmpty($definition
->id(), 'Pattern definition id is empty');
$this
->assertNotEmpty($definition
->getProvider(), 'Pattern definition provider is empty');
$this
->assertNotEmpty($definition
->getBasePath(), 'Pattern definition base path is empty');
}
}