You are here

public function SystemListingCrossProfileCompatibleTest::testSystemListing in Drupal 8

Same name and namespace in other branches
  1. 9 core/profiles/testing/modules/drupal_system_listing_compatible_test/tests/src/Kernel/SystemListingCrossProfileCompatibleTest.php \Drupal\Tests\drupal_system_listing_compatible_test\Kernel\SystemListingCrossProfileCompatibleTest::testSystemListing()

Non-empty test* method required to executed the test case class.

File

core/profiles/testing/modules/drupal_system_listing_compatible_test/tests/src/Kernel/SystemListingCrossProfileCompatibleTest.php, line 49

Class

SystemListingCrossProfileCompatibleTest
Verifies that tests in installation profile modules are found and may use another profile for running tests.

Namespace

Drupal\Tests\drupal_system_listing_compatible_test\Kernel

Code

public function testSystemListing() {

  /** @var \Drupal\Core\Extension\ModuleHandlerInterface $module_handler */
  $module_handler = $this->container
    ->get('module_handler');
  $this
    ->assertTrue($module_handler
    ->moduleExists('drupal_system_cross_profile_test'), 'Module installed from different profile');
}