|
| run (?\PHPUnit_Framework_TestResult $result=null) |
|
|
| setUp () |
|
| tearDown () |
|
| removeDatabaseTypeFromTest ( $databaseToBeExcluded) |
|
| destroyDatabaseTablesAfterRun () |
|
| getStore () |
|
| setStoresToBeExcluded (array $storesToBeExcluded) |
|
| skipTestForMediaWikiVersionLowerThan ( $version, $message='') |
|
| skipTestForDatabase ( $excludedDatabase, $message='') |
|
| skipTestForStore ( $excludeStore) |
|
| getDBConnection () |
|
| getConnectionProvider () |
|
| isUsableUnitTestDatabase () |
|
| checkIfDatabaseCanBeUsedOtherwiseSkipTest () |
|
| checkIfStoreCanBeUsedOtherwiseSkipTest () |
|
|
| $testEnvironment |
|
| $testDatabaseTableBuilder |
|
| $databaseToBeExcluded = null |
|
| $storesToBeExcluded = null |
|
| $destroyDatabaseTablesBeforeRun = false |
|
| $destroyDatabaseTablesAfterRun = false |
|
| $isUsableUnitTestDatabase = true |
|
semantic-mediawiki mediawiki-database
medium
GNU GPL v2+
- Since
- 2.0
- Author
- mwjames
◆ run()
SMW\Tests\DatabaseTestCase::run |
( |
?\PHPUnit_Framework_TestResult |
$result = null | ) |
|
It is assumed that each test that makes use of the TestCase is requesting a "real" DB connection
By default, the database tables are being re-used but it is possible to request a trear down so that the next test can rebuild the tables from scratch
◆ setUp()
SMW\Tests\DatabaseTestCase::setUp |
( |
| ) |
|
|
protected |
◆ setUpBeforeClass()
static SMW\Tests\DatabaseTestCase::setUpBeforeClass |
( |
| ) |
|
|
static |
Tests are written with a specific default behaviour in mind and should be independent from any LocalSettings.php
configuration that may alter functional components therefore add configurations that needs to be initialized before any service is created.
The documentation for this class was generated from the following file: