Semantic MediaWiki and related extensions
Protected Member Functions | Protected Attributes | List of all members
SMW\Tests\LightweightJsonTestCaseScriptRunner Class Reference
Inheritance diagram for SMW\Tests\LightweightJsonTestCaseScriptRunner:
Inheritance graph
[legend]
Collaboration diagram for SMW\Tests\LightweightJsonTestCaseScriptRunner:
Collaboration graph
[legend]

Protected Member Functions

 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 ()
 

Protected Attributes

 $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
 

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)
 
- Static Public Member Functions inherited from SMW\Tests\DatabaseTestCase
static setUpBeforeClass ()
 

Detailed Description

This JsonTestCaseScriptRunner is provided as simple test case runner for the JSONScript that covers the base parser, parser-html, and semantic-data type assertions.

It is provided for external extensions that seek a simple way of creating tests with (or without) Semantic MediaWiki integration in mind.

semantic-mediawiki medium

GNU GPL v2+

Since
3.1
Author
mwjames

Member Function Documentation

◆ getPermittedSettings()

SMW\Tests\LightweightJsonTestCaseScriptRunner::getPermittedSettings ( )
protected
See also
BaseJsonTestCaseScriptRunner::getPermittedSettings

◆ runTestCaseFile()

SMW\Tests\LightweightJsonTestCaseScriptRunner::runTestCaseFile ( JsonTestCaseFileHandler  $jsonTestCaseFileHandler)
protected
See also
BaseJsonTestCaseScriptRunner::runTestCaseFile
Parameters
JsonTestCaseFileHandler$jsonTestCaseFileHandler

Member Data Documentation

◆ $deletePagesOnTearDown

SMW\Tests\LightweightJsonTestCaseScriptRunner::$deletePagesOnTearDown = true
protected
See also
JsonTestCaseScriptRunner::$deletePagesOnTearDown

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

About | General disclaimer | Privacy policy