setInstallProfile($this->profile); } /** * Non-empty test* method required to executed the test case class. */ 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'); } }