This was done automatically by replacing every assertContains with string *needle*. Then verifying the results. Bug: T192167 Change-Id: Id8cbbf3b01e948f80046714183cc299f86be21fd
35 lines
653 B
PHP
35 lines
653 B
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->assertStringContainsString( '(log-summary)', $html );
|
|
}
|
|
|
|
}
|