You are here

public function KernelTestBaseTest::testProfileModules in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testProfileModules()
  2. 9 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\KernelTests

Code

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'));
}