mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-29 02:25:03 +00:00
d16dfb0ad5
* Fix errors and warnings from phpcs. * Add commas at end of lines for arrays in PHP. * Add space between // and comment. * Add space between ) and {. * Use tabs instead of spaces for indenting. * Break lines in PHP with more than 100 characters. * Remove double spaces and spaces at end of line. * Remove spaces before comma. * Fix some typos. Change-Id: I9c014bdfa9832fa6a20d0190fe2fc668983d0fb9
69 lines
1.7 KiB
PHP
69 lines
1.7 KiB
PHP
<?php
|
|
require_once 'WikiDialogsLinksSetup.php';
|
|
/**
|
|
* Description of WikiNewPageDialogs
|
|
*
|
|
* @author bhagyag, pdhanda
|
|
*
|
|
* This test case is part of the WikiEditorTestSuite.
|
|
* Configuration for these tests are documented as part of
|
|
* extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php
|
|
*
|
|
*/
|
|
class WikiDialogsLinks extends WikiDialogsLinksSetup {
|
|
// Set up the testing environment
|
|
function setup() {
|
|
parent::setUp();
|
|
parent::doCreateInternalTestPageIfMissing();
|
|
}
|
|
|
|
function tearDown() {
|
|
parent::doLogout();
|
|
parent::tearDown();
|
|
}
|
|
|
|
// Create a new page temporary
|
|
function createNewPage() {
|
|
parent::doOpenLink();
|
|
parent::login();
|
|
parent::doCreateNewPageTemporary();
|
|
}
|
|
|
|
// Add a internal link and verify
|
|
function testInternalLink() {
|
|
$this->createNewPage();
|
|
parent::verifyInternalLink();
|
|
}
|
|
|
|
// Add a internal link with different display text and verify
|
|
function testInternalLinkWithDisplayText() {
|
|
$this->createNewPage();
|
|
parent::verifyInternalLinkWithDisplayText();
|
|
}
|
|
|
|
// Add a internal link with blank display text and verify
|
|
function testInternalLinkWithBlankDisplayText() {
|
|
$this->createNewPage();
|
|
parent::verifyInternalLinkWithBlankDisplayText();
|
|
}
|
|
|
|
// Add external link and verify
|
|
function testExternalLink() {
|
|
$this->createNewPage();
|
|
parent::verifyExternalLink();
|
|
}
|
|
|
|
// Add external link with different display text and verify
|
|
function testExternalLinkWithDisplayText( ) {
|
|
$this->createNewPage();
|
|
parent::verifyExternalLinkWithDisplayText();
|
|
}
|
|
|
|
// Add external link with Blank display text and verify
|
|
function testExternalLinkWithBlankDisplayText() {
|
|
$this->createNewPage();
|
|
parent::verifyExternalLinkWithBlankDisplayText();
|
|
}
|
|
|
|
}
|