function InstallationProfileModuleTestsTest::testInstallationProfileTests in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php \Drupal\simpletest\Tests\InstallationProfileModuleTestsTest::testInstallationProfileTests()
Tests existence of test case located in an installation profile module.
File
- core/
modules/ simpletest/ src/ Tests/ InstallationProfileModuleTestsTest.php, line 57 - Contains \Drupal\simpletest\Tests\InstallationProfileModuleTestsTest.
Class
- InstallationProfileModuleTestsTest
- Verifies that tests bundled with installation profile modules are found.
Namespace
Drupal\simpletest\TestsCode
function testInstallationProfileTests() {
$this
->drupalGet('admin/config/development/testing');
$this
->assertText('Drupal\\drupal_system_listing_compatible_test\\Tests\\SystemListingCompatibleTest');
$edit = array(
'tests[Drupal\\drupal_system_listing_compatible_test\\Tests\\SystemListingCompatibleTest]' => TRUE,
);
$this
->drupalPostForm(NULL, $edit, t('Run tests'));
$this
->assertText('SystemListingCompatibleTest test executed.');
}