function SimpleTestInstallationProfileModuleTestsTestCase::testInstallationProfileTests in Drupal 7
Tests existence of test case located in an installation profile module.
File
- modules/
simpletest/ simpletest.test, line 660 - Tests for simpletest.module.
Class
- SimpleTestInstallationProfileModuleTestsTestCase
- Verifies that tests bundled with installation profile modules are found.
Code
function testInstallationProfileTests() {
$this
->drupalGet('admin/config/development/testing');
$this
->assertText('Installation profile module tests helper');
$edit = array(
'DrupalSystemListingCompatibleTestCase' => TRUE,
);
$this
->drupalPost(NULL, $edit, t('Run tests'));
$this
->assertText('DrupalSystemListingCompatibleTestCase test executed.');
}