This was done automatically by replacing every assertContains with string *needle*. Then verifying the results. Bug: T192167 Change-Id: Id8cbbf3b01e948f80046714183cc299f86be21fd
30 lines
581 B
PHP
30 lines
581 B
PHP
<?php
|
|
|
|
/**
|
|
* @license GPL-2.0-or-later
|
|
* @author Addshore
|
|
*
|
|
* @covers SpecialBlankpage
|
|
*/
|
|
class SpecialBlankPageTest extends SpecialPageTestBase {
|
|
|
|
protected function setUp() : void {
|
|
parent::setUp();
|
|
$this->setUserLang( 'qqx' );
|
|
}
|
|
|
|
/**
|
|
* 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->assertStringContainsString( '(intentionallyblankpage)', $html );
|
|
}
|
|
|
|
}
|