Semantic MediaWiki and related extensions
Protected Member Functions | List of all members
SMW\Scribunto\Integration\JSONScript\SemanticScribuntoJsonTestCaseScriptRunnerTest Class Reference
Inheritance diagram for SMW\Scribunto\Integration\JSONScript\SemanticScribuntoJsonTestCaseScriptRunnerTest:
Inheritance graph
[legend]
Collaboration diagram for SMW\Scribunto\Integration\JSONScript\SemanticScribuntoJsonTestCaseScriptRunnerTest:
Collaboration graph
[legend]

Protected Member Functions

 setUp ()
 
 getRequiredJsonTestCaseMinVersion ()
 
 getTestCaseLocation ()
 
 getPermittedSettings ()
 
- 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

- 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 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.

The focus is on describing test definitions with its content and specify assertions to control the expected base line.

JsonTestCaseScriptRunner will handle the tearDown process and ensures that no test data are leaked into a production system but requires an active DB connection.

semantic-scribunto medium

GNU GPL v2+

Since
1.0
Author
mwjames

Member Function Documentation

◆ getPermittedSettings()

SMW\Scribunto\Integration\JSONScript\SemanticScribuntoJsonTestCaseScriptRunnerTest::getPermittedSettings ( )
protected

◆ getRequiredJsonTestCaseMinVersion()

SMW\Scribunto\Integration\JSONScript\SemanticScribuntoJsonTestCaseScriptRunnerTest::getRequiredJsonTestCaseMinVersion ( )
protected

◆ getTestCaseLocation()

SMW\Scribunto\Integration\JSONScript\SemanticScribuntoJsonTestCaseScriptRunnerTest::getTestCaseLocation ( )
protected

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

About | General disclaimer | Privacy policy