wiki.techinc.nl/tests/phpunit/includes/specials/SpecialBlankPageTest.php
addshore 60e2104f7e Add tests for Special:BlankPage
This uses SpecialPageTestBase and demonstrates how that class
should be used.

Change-Id: Ibbf3fdcb172d7c1c71491d27b534faa65fd9be63
2015-07-06 19:20:30 +00:00

25 lines
497 B
PHP

<?php
/**
* @licence GNU GPL v2+
* @author Adam Shorland
*
* @covers SpecialBlankpage
*/
class SpecialBlankPageTest extends SpecialPageTestBase {
/**
* Returns a new instance of the special page under test.
*
* @return SpecialPage
*/
protected function newSpecialPage() {
return new SpecialBlankpage();
}
public function testHasWikiMsg() {
list( $html, ) = $this->executeSpecialPage();
$this->assertContains( wfMessage( 'intentionallyblankpage' )->text(), $html );
}
}