MediaWiki REL1_33
SpecialLogTest.php
Go to the documentation of this file.
1<?php
11
17 protected function newSpecialPage() {
18 return new SpecialLog();
19 }
20
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}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
WebRequest clone which takes values from a provided array.
testInvalidDate()
Verify that no exception was thrown for an invalid date.
newSpecialPage()
Returns a new instance of the special page under test.
A special page that lists log entries.
Base class for testing special pages.
executeSpecialPage( $subPage='', WebRequest $request=null, $language=null, User $user=null)
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
Definition deferred.txt:11
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
Definition hooks.txt:2011