Do not insert page titles into querycache.qc_value
[lhc/web/wiklou.git] / tests / phpunit / includes / specials / SpecialLogTest.php
1 <?php
2 /**
3 * @license GPL-2.0-or-later
4 * @author Legoktm
5 */
6
7 /**
8 * @covers SpecialLog
9 */
10 class SpecialLogTest extends SpecialPageTestBase {
11
12 /**
13 * Returns a new instance of the special page under test.
14 *
15 * @return SpecialPage
16 */
17 protected function newSpecialPage() {
18 return new SpecialLog();
19 }
20
21 /**
22 * Verify that no exception was thrown for an invalid date
23 * @see T201411
24 */
25 public function testInvalidDate() {
26 list( $html, ) = $this->executeSpecialPage(
27 '',
28 // There is no 13th month
29 new FauxRequest( [ 'wpdate' => '2018-13-01' ] ),
30 'qqx'
31 );
32 $this->assertContains( '(log-summary)', $html );
33 }
34
35 }