}
function testApi() {
- if(!isset($wgServername) || !isset($wgServer)) {
+ global $wgServerName, $wgServer;
+
+ if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
}
function testApiLoginNoName() {
- if(!isset($wgServername) || !isset($wgServer)) {
+ global $wgServerName, $wgServer;
+
+ if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
}
function testApiLoginBadPass() {
- if(!isset($wgServername) || !isset($wgServer)) {
+ global $wgServerName, $wgServer;
+
+ if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
}
function testApiLoginGoodPass() {
- if(!isset($wgServername) || !isset($wgServer)) {
+ global $wgServerName, $wgServer;
+
+ if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
}
function testApiGotCookie() {
- global $wgScriptPath, $wgServerName;
+ global $wgServerName, $wgServer, $wgScriptPath;
- if(!isset($wgServername) || !isset($wgServer)) {
+ if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
*/
function testApiListPages(CookieJar $cj) {
$this->markTestIncomplete("Not done with this yet");
+ global $wgServerName, $wgServer;
if($wgServerName == "localhost" || $wgServer == "http://localhost") {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.