Addshore has uploaded a new change for review. https://gerrit.wikimedia.org/r/223009
Change subject: Add SpecialBlankPageTest ...................................................................... Add SpecialBlankPageTest This uses SpecialPageTestBase and is proof that said class works as expected Change-Id: Ibbf3fdcb172d7c1c71491d27b534faa65fd9be63 --- A tests/phpunit/includes/specials/SpecialBlankPageTest.php 1 file changed, 23 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/09/223009/1 diff --git a/tests/phpunit/includes/specials/SpecialBlankPageTest.php b/tests/phpunit/includes/specials/SpecialBlankPageTest.php new file mode 100644 index 0000000..e99f0fc --- /dev/null +++ b/tests/phpunit/includes/specials/SpecialBlankPageTest.php @@ -0,0 +1,23 @@ +<?php + +/** + * @licence GNU GPL v2+ + * @author Adam Shorland + */ +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 ); + } + +} -- To view, visit https://gerrit.wikimedia.org/r/223009 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibbf3fdcb172d7c1c71491d27b534faa65fd9be63 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Addshore <addshorew...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits