MediaWiki
REL1_19
|
Go to the source code of this file.
Functions | |
getTestResourceNameFromTestSuiteName ($testSuiteName) | |
getTestSuiteNameFromCookie ($cookieName) | |
getTestUploadPathFromResourceName ($testResourceName) | |
setupTestResources ($testResourceName, $testSqlFile, $testImageZip) | |
switchToTestResources ($testResourceName, $switchDB=true) | |
teardownTestResources ($testResourceName) | |
Variables | |
$cookieName = $cookiePrefix . 'Selenium' | |
$cookiePrefix = $wgSitename . '-' | |
$fname = 'SeleniumWebSettings.php' | |
$testImageZip = false | |
$testSqlFile = false | |
if (!defined( 'MEDIAWIKI')) | |
Dynamically change configuration variables based on the test suite name and a cookie value. |
getTestResourceNameFromTestSuiteName | ( | $ | testSuiteName | ) |
Definition at line 126 of file SeleniumWebSettings.php.
getTestSuiteNameFromCookie | ( | $ | cookieName | ) |
Definition at line 118 of file SeleniumWebSettings.php.
References $cookieName.
getTestUploadPathFromResourceName | ( | $ | testResourceName | ) |
Definition at line 134 of file SeleniumWebSettings.php.
References $IP.
Referenced by setupTestResources(), switchToTestResources(), and teardownTestResources().
setupTestResources | ( | $ | testResourceName, |
$ | testSqlFile, | ||
$ | testImageZip | ||
) |
Definition at line 140 of file SeleniumWebSettings.php.
References $testImageZip, $testSqlFile, $wgDBname, getTestUploadPathFromResourceName(), and wfGetDB().
switchToTestResources | ( | $ | testResourceName, |
$ | switchDB = true |
||
) |
Definition at line 190 of file SeleniumWebSettings.php.
References $wgDBname, $wgDBpassword, $wgDBtestpassword, $wgDBtestuser, $wgDBuser, $wgUploadPath, and getTestUploadPathFromResourceName().
teardownTestResources | ( | $ | testResourceName | ) |
Definition at line 178 of file SeleniumWebSettings.php.
References getTestUploadPathFromResourceName(), wfGetDB(), and wfRecursiveRemoveDir().
$cookieName = $cookiePrefix . 'Selenium' |
Definition at line 17 of file SeleniumWebSettings.php.
Referenced by getTestSuiteNameFromCookie(), OutputPage\getXVO(), and OutputPage\haveCacheVaryCookies().
$cookiePrefix = $wgSitename . '-' |
Definition at line 16 of file SeleniumWebSettings.php.
$fname = 'SeleniumWebSettings.php' |
Definition at line 13 of file SeleniumWebSettings.php.
Referenced by Skin\__call(), Article\__call(), DummyLinker\__call(), Article\__get(), Article\__set(), StubObject\_unstub(), DatabaseSqlite\attachDatabase(), DatabaseBase\begin(), AjaxResponse\checkLastModified(), Profiler\collateData(), DatabaseBase\commit(), DatabaseBase\deadlockLoop(), DatabaseIbm_db2\delete(), DatabaseBase\delete(), DatabaseMysql\deleteJoin(), DatabaseBase\deleteJoin(), IndexPager\doQuery(), DatabasePostgres\duplicateTableStructure(), DatabaseSqlite\duplicateTableStructure(), DatabaseMysql\duplicateTableStructure(), DatabaseMssql\estimateRowCount(), DatabaseMysql\estimateRowCount(), DatabasePostgres\estimateRowCount(), DatabaseBase\estimateRowCount(), QueryPage\getCachedTimestamp(), Profiler\getCallTreeLine(), Profiler\getFunctionReport(), HistoryBlobStub\getText(), SearchHighlighter\highlightSimple(), SearchHighlighter\highlightText(), DatabaseBase\indexExists(), DatabaseMssql\indexInfo(), DatabaseMysql\indexInfo(), DatabasePostgres\indexInfo(), DatabaseSqlite\indexInfo(), DatabaseIbm_db2\indexInfo(), DatabasePostgres\indexUnique(), DatabaseSqlite\indexUnique(), DatabaseIbm_db2\indexUnique(), DatabaseMssql\insert(), DatabasePostgres\insert(), DatabaseOracle\insert(), DatabaseBase\insert(), DatabaseMssql\insertSelect(), DatabasePostgres\insertSelect(), DatabaseBase\insertSelect(), DatabasePostgres\listTables(), DatabaseMysql\listTables(), DatabaseMysql\masterPosWait(), moveToExternal(), DatabaseBase\nativeReplace(), RecentChange\newFromConds(), ImportStreamSource\newFromUpload(), LocalFile\nextHistoryLine(), Parser\parse(), DatabaseBase\query(), DatabasePostgres\queryIgnore(), DatabaseOracle\queryIgnore(), IndexPager\reallyDoQuery(), QueryPage\reallyDoQuery(), QueryPage\recache(), SearchHighlighter\removeWiki(), DatabaseMysql\replace(), DatabaseBase\replace(), DatabaseOracle\reportQueryError(), DatabaseBase\reportQueryError(), resolveStub(), resolveStubs(), DatabaseBase\rollback(), XmlTypeCheck\run(), DatabaseMssql\select(), DatabaseIbm_db2\select(), DatabaseBase\select(), DatabaseBase\selectField(), RandomPage\selectRandomPageFromDB(), DatabaseOracle\selectRow(), DatabaseBase\selectRow(), DatabaseMssql\selectSQLText(), DatabaseBase\set(), DatabaseBase\sourceFile(), DatabaseBase\sourceStream(), splitFilename(), StreamFile\stream(), DatabaseBase\tableExists(), DatabaseBase\update(), and wfStreamFile().
$testImageZip = false |
Definition at line 21 of file SeleniumWebSettings.php.
Referenced by setupTestResources().
$testSqlFile = false |
Definition at line 20 of file SeleniumWebSettings.php.
Referenced by setupTestResources().
Dynamically change configuration variables based on the test suite name and a cookie value.
For details on how to configure a wiki for a Selenium test, see: http://www.mediawiki.org/wiki/SeleniumFramework#Test_Wiki_configuration
Definition at line 7 of file SeleniumWebSettings.php.