You are here

function OtherInstallationProfileTestsTest::testOtherInstallationProfile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/Tests/OtherInstallationProfileTestsTest.php \Drupal\simpletest\Tests\OtherInstallationProfileTestsTest::testOtherInstallationProfile()

Tests that tests located in another installation profile appear.

File

core/modules/simpletest/src/Tests/OtherInstallationProfileTestsTest.php, line 58
Contains \Drupal\simpletest\Tests\OtherInstallationProfileTestsTest.

Class

OtherInstallationProfileTestsTest
Verifies that tests in other installation profiles are found.

Namespace

Drupal\simpletest\Tests

Code

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\\drupal_system_listing_compatible_test\\Tests\\SystemListingCompatibleTest');
}