3 namespace Drupal\Tests\simpletest\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Verifies that tests in other installation profiles are found.
11 * @see \Drupal\simpletest\Tests\InstallationProfileModuleTestsTest
13 class OtherInstallationProfileTestsTest extends BrowserTestBase {
20 public static $modules = ['simpletest'];
23 * Use the Minimal profile.
25 * The Testing profile contains drupal_system_listing_compatible_test.test,
26 * which should be found.
28 * The Standard profile contains \Drupal\standard\Tests\StandardTest, which
33 * @see \Drupal\simpletest\Tests\InstallationProfileModuleTestsTest
34 * @see \Drupal\Tests\drupal_system_listing_compatible_test\Kernel\SystemListingCrossProfileCompatibleTest
36 protected $profile = 'minimal';
39 * An administrative user with permission to administer unit tests.
41 * @var \Drupal\user\UserInterface
45 protected function setUp() {
48 $this->adminUser = $this->drupalCreateUser(['administer unit tests']);
49 $this->drupalLogin($this->adminUser);
53 * Tests that tests located in another installation profile appear.
55 public function testOtherInstallationProfile() {
56 // Assert the existence of a test in a different installation profile than
58 $this->drupalGet('admin/config/development/testing');
59 $this->assertText('Tests Standard installation profile expectations.');
61 // Assert the existence of a test for a module in a different installation
62 // profile than the current.
63 $this->assertText('Drupal\Tests\drupal_system_listing_compatible_test\Kernel\SystemListingCrossProfileCompatibleTest');