function ComponentPluginManagerTest::testMismatchingFolderName
Same name in this branch
- 10 core/tests/Drupal/Tests/Core/Theme/Component/ComponentPluginManagerTest.php \Drupal\Tests\Core\Theme\Component\ComponentPluginManagerTest::testMismatchingFolderName()
Same name in other branches
- 11.x core/modules/sdc/tests/src/Kernel/ComponentPluginManagerTest.php \Drupal\Tests\sdc\Kernel\ComponentPluginManagerTest::testMismatchingFolderName()
- 11.x core/tests/Drupal/Tests/Core/Theme/Component/ComponentPluginManagerTest.php \Drupal\Tests\Core\Theme\Component\ComponentPluginManagerTest::testMismatchingFolderName()
- 11.x core/tests/Drupal/KernelTests/Components/ComponentPluginManagerTest.php \Drupal\KernelTests\Components\ComponentPluginManagerTest::testMismatchingFolderName()
Test that the machine name is grabbed from the *.component.yml.
And not from the enclosing directory.
File
-
core/
modules/ sdc/ tests/ src/ Kernel/ ComponentPluginManagerTest.php, line 47
Class
- ComponentPluginManagerTest
- Tests the component plugin manager.
Namespace
Drupal\Tests\sdc\KernelCode
public function testMismatchingFolderName() {
$this->expectException(ComponentNotFoundException::class);
$this->manager
->find('sdc_theme_test:mismatching-folder-name');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.