public function KernelTestBaseTest::testProfileModules in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testProfileModules()
Ensures KernelTestBase tests can access modules in profiles.
File
- core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php, line 334
Class
- KernelTestBaseTest
- @coversDefaultClass \Drupal\KernelTests\KernelTestBase
Namespace
Drupal\KernelTestsCode
public function testProfileModules() {
$this
->assertFileExists('core/profiles/demo_umami/modules/demo_umami_content/demo_umami_content.info.yml');
$this
->assertSame('core/profiles/demo_umami/modules/demo_umami_content/demo_umami_content.info.yml', \Drupal::service('extension.list.module')
->getPathname('demo_umami_content'));
}