summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/specials/SpecialBlankPageTest.php
blob: 1d4f5e51f0604893dd1f663b6ada418f3b32824d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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 );
	}

}