|
MediaWiki
REL1_21
|
Tests for MediaWiki api.php?action=edit. More...


Public Member Functions | |
| setup () | |
| teardown () | |
| testEdit () | |
| testEditAppend ($text, $op, $append, $expected) | |
| provideEditAppend | |
| testEditConflict () | |
| testEditConflict_bug41990 () | |
| testEditConflict_redirect () | |
| testEditSection () | |
| testNonTextEdit () | |
| testUndo () | |
Static Public Member Functions | |
| static | provideEditAppend () |
Protected Member Functions | |
| forceRevisionDate (WikiPage $page, $timestamp) | |
Tests for MediaWiki api.php?action=edit.
API Database medium
Definition at line 12 of file ApiEditPageTest.php.
| ApiEditPageTest::forceRevisionDate | ( | WikiPage $ | page, |
| $ | timestamp | ||
| ) | [protected] |
Definition at line 343 of file ApiEditPageTest.php.
References $timestamp, array(), WikiPage\clear(), WikiPage\getLatest(), and wfGetDB().
Referenced by testEditConflict(), testEditConflict_bug41990(), and testEditConflict_redirect().
| static ApiEditPageTest::provideEditAppend | ( | ) | [static] |
Definition at line 127 of file ApiEditPageTest.php.
Definition at line 14 of file ApiEditPageTest.php.
References $wgContLang, cache, MWNamespace\getCanonicalNamespaces(), and global.
Definition at line 31 of file ApiEditPageTest.php.
References $wgContLang, cache, MWNamespace\getCanonicalNamespaces(), and global.
Definition at line 46 of file ApiEditPageTest.php.
References $name, array(), and ApiTestCase\doApiRequestWithToken().
| ApiEditPageTest::testEditAppend | ( | $ | text, |
| $ | op, | ||
| $ | append, | ||
| $ | expected | ||
| ) |
provideEditAppend
Definition at line 153 of file ApiEditPageTest.php.
References $count, $name, $page, array(), ApiTestCase\doApiRequestWithToken(), list, and Title\newFromText().
Definition at line 204 of file ApiEditPageTest.php.
References $count, $name, $page, $title, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), fail, forceRevisionDate(), UsageException\getCodeString(), list, Title\newFromText(), and user.
Definition at line 296 of file ApiEditPageTest.php.
References $count, $name, $page, $title, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), forceRevisionDate(), list, Title\newFromText(), and user.
Definition at line 240 of file ApiEditPageTest.php.
References $count, $name, $page, $title, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), fail, forceRevisionDate(), UsageException\getCodeString(), list, Title\newFromText(), and user.
Definition at line 196 of file ApiEditPageTest.php.
Definition at line 100 of file ApiEditPageTest.php.
References $name, $page, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), and Title\newFromText().
Definition at line 200 of file ApiEditPageTest.php.