3 namespace Drupal\Tests\simpletest\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Verifies that tests in other installation profiles are found.
11 * @see SimpleTestInstallationProfileModuleTestsTestCase
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
31 * @see \Drupal\simpletest\Tests\InstallationProfileModuleTestsTest
32 * @see \Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest
34 protected $profile = 'minimal';
37 * An administrative user with permission to administer unit tests.
39 * @var \Drupal\user\UserInterface
43 protected function setUp() {
46 $this->adminUser = $this->drupalCreateUser(['administer unit tests']);
47 $this->drupalLogin($this->adminUser);
51 * Tests that tests located in another installation profile appear.
53 public function testOtherInstallationProfile() {
54 // Assert the existence of a test in a different installation profile than
56 $this->drupalGet('admin/config/development/testing');
57 $this->assertText('Tests Standard installation profile expectations.');
59 // Assert the existence of a test for a module in a different installation
60 // profile than the current.
61 $this->assertText('Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest');