adminUser = $this->drupalCreateUser(['administer unit tests']); $this->drupalLogin($this->adminUser); } /** * Tests that tests located in another installation profile appear. */ public function testOtherInstallationProfile() { // Assert the existence of a test in a different installation profile than // the current. $this->drupalGet('admin/config/development/testing'); $this->assertText('Tests Standard installation profile expectations.'); // Assert the existence of a test for a module in a different installation // profile than the current. $this->assertText('Drupal\Tests\drupal_system_listing_compatible_test\Kernel\SystemListingCrossProfileCompatibleTest'); } }