Semantic MediaWiki and related extensions
|
Public Member Functions | |
testCaseFile ( $file) | |
jsonFileProvider () | |
Public Member Functions inherited from SMW\Tests\DatabaseTestCase | |
run (?\PHPUnit_Framework_TestResult $result=null) | |
Protected Member Functions | |
setUp () | |
tearDown () | |
getTestCaseLocation () | |
runTestCaseFile (JsonTestCaseFileHandler $jsonTestCaseFileHandler) | |
getRequiredJsonTestCaseMinVersion () | |
getAllowedTestCaseFiles () | |
getDependencyDefinitions () | |
getPermittedSettings () | |
registerConfigValueCallback ( $key, \Closure $callback) | |
getConfigValueCallback ( $key) | |
canTestCaseFile ( $file) | |
changeGlobalSettingTo ( $key, $value) | |
checkEnvironmentToSkipCurrentTest (JsonTestCaseFileHandler $jsonTestCaseFileHandler) | |
createPagesFrom (array $pages, $defaultNamespace=NS_MAIN) | |
createPagesFor (array $pages, $defaultNamespace) | |
Protected Member Functions inherited from SMW\Tests\DatabaseTestCase | |
setUp () | |
tearDown () | |
removeDatabaseTypeFromTest ( $databaseToBeExcluded) | |
destroyDatabaseTablesAfterRun () | |
getStore () | |
setStoresToBeExcluded (array $storesToBeExcluded) | |
skipTestForMediaWikiVersionLowerThan ( $version, $message='') | |
skipTestForDatabase ( $excludedDatabase, $message='') | |
skipTestForStore ( $excludeStore) | |
getDBConnection () | |
getConnectionProvider () | |
isUsableUnitTestDatabase () | |
checkIfDatabaseCanBeUsedOtherwiseSkipTest () | |
checkIfStoreCanBeUsedOtherwiseSkipTest () | |
Protected Attributes | |
$deletePagesOnTearDown = true | |
$searchByFileExtension = 'json' | |
$connectorId = '' | |
Protected Attributes inherited from SMW\Tests\DatabaseTestCase | |
$testEnvironment | |
$testDatabaseTableBuilder | |
$databaseToBeExcluded = null | |
$storesToBeExcluded = null | |
$destroyDatabaseTablesBeforeRun = false | |
$destroyDatabaseTablesAfterRun = false | |
$isUsableUnitTestDatabase = true | |
Additional Inherited Members | |
Static Public Member Functions inherited from SMW\Tests\DatabaseTestCase | |
static | setUpBeforeClass () |
The JsonTestCaseScriptRunner
is a convenience provider for Json
formatted integration tests to allow writing tests quicker without the need to setup or tear down specific data structures.
The JSON format should make it also possible for novice user to understand what sort of tests are run as the content is based on wikitext rather than native PHP.
semantic-mediawiki medium
GNU GPL v2+
|
protected |
Normally returns TRUE but can act on the list retrieved from JsonTestCaseScriptRunner::getAllowedTestCaseFiles (or hereof) to filter selected files and help fine tune a setup or debug a potential issue without having to run all test files at once.
string | $file |
|
protected |
mixed | $key | |
mixed | $value |
|
protected |
JsonTestCaseFileHandler | $jsonTestCaseFileHandler |
|
protected |
|
protected |
array | $pages | |
integer | $defaultNamespace |
|
protected |
|
protected |
|
protected |
|
protected |
Selected list of settings (internal or MediaWiki related) that are permissible for the time of the test run to be manipulated.
For a configuration that requires special treatment (i.e. where a simple assignment isn't sufficient), a callback can be assigned to a settings key in order to sort out required manipulation (constants etc.).
|
protected |
|
abstractprotected |
SMW\Tests\JsonTestCaseScriptRunner::jsonFileProvider | ( | ) |
|
protected |
string | $key | |
Closure | $callback |
|
abstractprotected |
JsonTestCaseFileHandler | $jsonTestCaseFileHandler |
SMW\Tests\JsonTestCaseScriptRunner::testCaseFile | ( | $file | ) |
jsonFileProvider