%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/www/varak.net/wiki.varak.net/tests/phpunit/includes/specials/
Upload File :
Create Path :
Current File : //proc/self/root/www/varak.net/wiki.varak.net/tests/phpunit/includes/specials/SpecialLogTest.php

<?php
/**
 * @license GPL-2.0-or-later
 * @author Legoktm
 */

/**
 * @covers SpecialLog
 */
class SpecialLogTest extends SpecialPageTestBase {

	/**
	 * Returns a new instance of the special page under test.
	 *
	 * @return SpecialPage
	 */
	protected function newSpecialPage() {
		return new SpecialLog();
	}

	/**
	 * Verify that no exception was thrown for an invalid date
	 * @see T201411
	 */
	public function testInvalidDate() {
		list( $html, ) = $this->executeSpecialPage(
			'',
			// There is no 13th month
			new FauxRequest( [ 'wpdate' => '2018-13-01' ] ),
			'qqx'
		);
		$this->assertContains( '(log-summary)', $html );
	}

}

Zerion Mini Shell 1.0