function InstallationProfileModuleTestsTest::testInstallationProfileTests

Tests existence of test case located in an installation profile module.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/InstallationProfileModuleTestsTest.php, line 56
Definition of Drupal\simpletest\Tests\InstallationProfileModuleTestsTest.

Class

InstallationProfileModuleTestsTest
Verifies that tests bundled with installation profile modules are found.

Namespace

Drupal\simpletest\Tests

Code

function testInstallationProfileTests() {
  $this
    ->drupalGet('admin/config/development/testing');
  $this
    ->assertText('Installation profile module tests helper');
  $edit = array(
    'Drupal\\drupal_system_listing_compatible_test\\Tests\\SystemListingCompatibleTest' => TRUE,
  );
  $this
    ->drupalPost(NULL, $edit, t('Run tests'));
  $this
    ->assertText('SystemListingCompatibleTest test executed.');
}