admin = new UltimateAuthority( $this->getTestSysop()->getUser() ); } /** * @covers \MediaWiki\Specials\SpecialContribute::execute */ public function testExecute() { $this->specialContribute = new SpecialContribute(); [ $html ] = $this->executeSpecialPage( $this->admin->getUser()->getName(), null, 'qqx', $this->admin, true ); $this->assertStringContainsString( '
', $html ); $this->assertStringContainsString( '
', $html ); } public function testIsShowable() { $this->specialContribute = new SpecialContribute(); $this->executeSpecialPage( $this->admin->getUser()->getName(), null, 'qqx', $this->admin, true ); $this->assertFalse( $this->specialContribute->isShowable() ); } /** * @inheritDoc */ protected function newSpecialPage(): SpecialContribute { return $this->specialContribute; } }