class SimpletestTest
Same name in this branch
- 8.9.x core/modules/simpletest/src/Tests/SimpleTestTest.php \Drupal\simpletest\Tests\SimpleTestTest
Basic functionality of the Testing module.
@group simpletest
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\PhpunitCompatibilityTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\simpletest\Functional\SimpletestTest extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of SimpletestTest
1 string reference to 'SimpletestTest'
- SimpleTestTest::stubTest in core/
modules/ simpletest/ src/ Tests/ SimpleTestTest.php - Test to be run and the results confirmed.
File
-
core/
modules/ simpletest/ tests/ src/ Functional/ SimpletestTest.php, line 12
Namespace
Drupal\Tests\simpletest\FunctionalView source
class SimpletestTest extends BrowserTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = [
'simpletest',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Test that we can uninstall the module without mishap.
*
* Upon uninstall, simpletest will clean up after itself. This should neither
* break the test runner's expectations, nor cause any kind of exception.
*
* Note that this might break run-tests.sh test runs that don't use the
* --sqlite argument.
*/
public function testUninstallModule() {
/* @var $installer \Drupal\Core\Extension\ModuleInstallerInterface */
$installer = $this->container
->get('module_installer');
$this->assertTrue($installer->uninstall([
'simpletest',
]));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
SimpletestTest::$defaultTheme | protected | property | |
SimpletestTest::$modules | public static | property | Modules to enable. |
SimpletestTest::testUninstallModule | public | function | Test that we can uninstall the module without mishap. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.