Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
SRF\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest Class Reference
Inheritance diagram for SRF\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest:
Inheritance graph
[legend]
Collaboration diagram for SRF\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest:
Collaboration graph
[legend]

Public Member Functions

 checkMermaidDependency ( $val, &$reason)
 
- Public Member Functions inherited from SMW\Tests\JsonTestCaseScriptRunner
 testCaseFile ( $file)
 
 jsonFileProvider ()
 
- Public Member Functions inherited from SMW\Tests\DatabaseTestCase
 run (\PHPUnit_Framework_TestResult $result=null)
 

Protected Member Functions

 getTestCaseLocation ()
 
 getPermittedSettings ()
 
 getDependencyDefinitions ()
 
- Protected Member Functions inherited from SMW\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest
 getTestCaseLocation ()
 
 getRequiredJsonTestCaseMinVersion ()
 
 getDependencyDefinitions ()
 
- Protected Member Functions inherited from SMW\Tests\ExtendedJsonTestCaseScriptRunner
 setUp ()
 
 runTestCaseFile (JsonTestCaseFileHandler $jsonTestCaseFileHandler)
 
- Protected Member Functions inherited from SMW\Tests\LightweightJsonTestCaseScriptRunner
 setUp ()
 
 runTestCaseFile (JsonTestCaseFileHandler $jsonTestCaseFileHandler)
 
 getPermittedSettings ()
 
- Protected Member Functions inherited from SMW\Tests\JsonTestCaseScriptRunner
 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from SMW\Tests\ExtendedJsonTestCaseScriptRunner
 $deletePagesOnTearDown = true
 
- Protected Attributes inherited from SMW\Tests\LightweightJsonTestCaseScriptRunner
 $validatorFactory
 
 $runnerFactory
 
 $deletePagesOnTearDown = true
 
- Protected Attributes inherited from SMW\Tests\JsonTestCaseScriptRunner
 $deletePagesOnTearDown = true
 
 $searchByFileExtension = 'json'
 
 $connectorId = ''
 
- Protected Attributes inherited from SMW\Tests\DatabaseTestCase
 $testEnvironment
 
 $testDatabaseTableBuilder
 
 $databaseToBeExcluded = null
 
 $storesToBeExcluded = null
 
 $destroyDatabaseTablesBeforeRun = false
 
 $destroyDatabaseTablesAfterRun = false
 
 $isUsableUnitTestDatabase = true
 

Detailed Description

See also
https://github.com/SemanticMediaWiki/SemanticMediaWiki/tree/master/tests#write-integration-tests-using-json-script

JsonTestCaseScriptRunner provisioned by SMW is a base class allowing to use a JSON format to create test definitions with the objective to compose "real" content and test integration with MediaWiki, Semantic MediaWiki, and Scribunto.

SRF SMWExtension

GNU GPL v2+

Since
2.5
Author
Stephan Gambke

Member Function Documentation

◆ getDependencyDefinitions()

SRF\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::getDependencyDefinitions ( )
protected
See also
JsonTestCaseScriptRunner::getDependencyDefinitions

◆ getPermittedSettings()

SRF\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::getPermittedSettings ( )
protected
Returns
string[]
Since
3.0

◆ getTestCaseLocation()

SRF\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::getTestCaseLocation ( )
protected
See also
::getTestCaseLocation
Returns
string

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy