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

Public Member Functions

 run (\PHPUnit_Framework_TestResult $result=null)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 removeDatabaseTypeFromTest ( $databaseToBeExcluded)
 
 destroyDatabaseTablesAfterRun ()
 
 getStore ()
 
 setStoresToBeExcluded (array $storesToBeExcluded)
 
 skipTestForMediaWikiVersionLowerThan ( $version, $message='')
 
 skipTestForDatabase ( $excludedDatabase, $message='')
 
 skipTestForStore ( $excludeStore)
 
 getDBConnection ()
 
 getConnectionProvider ()
 
 isUsableUnitTestDatabase ()
 
 checkIfDatabaseCanBeUsedOtherwiseSkipTest ()
 
 checkIfStoreCanBeUsedOtherwiseSkipTest ()
 

Protected Attributes

 $testEnvironment
 
 $testDatabaseTableBuilder
 
 $databaseToBeExcluded = null
 
 $storesToBeExcluded = null
 
 $destroyDatabaseTablesBeforeRun = false
 
 $destroyDatabaseTablesAfterRun = false
 
 $isUsableUnitTestDatabase = true
 

Detailed Description

semantic-mediawiki mediawiki-database

medium

GNU GPL v2+

Since
2.0
Author
mwjames

Member Function Documentation

◆ 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

MediaWiki specific setup


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

About | General disclaimer | Privacy policy