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


Public Member Functions | |
| testEdit () | |
| testEditAppend ($text, $op, $append, $expected) | |
| provideEditAppend | |
| testEditConflict () | |
| testEditConflict_bug41990 () | |
| testEditConflict_redirect () | |
| testEditNewSection () | |
| Test action=edit§ion=new Run it twice so we test adding a new section on a page that doesn't exist (bug 52830) and one that does exist. | |
| testEditSection () | |
| Test editing of sections. | |
| testNonTextEdit () | |
Static Public Member Functions | |
| static | provideEditAppend () |
Protected Member Functions | |
| forceRevisionDate (WikiPage $page, $timestamp) | |
| setUp () | |
| tearDown () | |
Tests for MediaWiki api.php?action=edit.
API Database medium
Definition at line 14 of file ApiEditPageTest.php.
| ApiEditPageTest::forceRevisionDate | ( | WikiPage $ | page, |
| $ | timestamp | ||
| ) | [protected] |
| WikiPage | $page | |
| string | int | $timestamp |
Definition at line 419 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 129 of file ApiEditPageTest.php.
| ApiEditPageTest::setUp | ( | ) | [protected] |
Reimplemented from ApiTestCase.
Definition at line 16 of file ApiEditPageTest.php.
References $wgContLang, array(), cache, MWNamespace\getCanonicalNamespaces(), global, and MediaWikiTestCase\setMwGlobals().
| ApiEditPageTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 40 of file ApiEditPageTest.php.
References cache, and MWNamespace\getCanonicalNamespaces().
Definition at line 45 of file ApiEditPageTest.php.
References $name, array(), and ApiTestCase\doApiRequestWithToken().
| ApiEditPageTest::testEditAppend | ( | $ | text, |
| $ | op, | ||
| $ | append, | ||
| $ | expected | ||
| ) |
provideEditAppend
Definition at line 155 of file ApiEditPageTest.php.
References $count, $name, array(), ApiTestCase\doApiRequestWithToken(), list, and Title\newFromText().
Definition at line 277 of file ApiEditPageTest.php.
References $count, $name, $title, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), fail, forceRevisionDate(), UsageException\getCodeString(), Title\newFromText(), and user.
Definition at line 369 of file ApiEditPageTest.php.
References $count, $name, $title, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), forceRevisionDate(), list, Title\newFromText(), and user.
Definition at line 313 of file ApiEditPageTest.php.
References $count, $name, $title, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), fail, forceRevisionDate(), UsageException\getCodeString(), list, Title\newFromText(), and user.
Test action=edit§ion=new Run it twice so we test adding a new section on a page that doesn't exist (bug 52830) and one that does exist.
Definition at line 240 of file ApiEditPageTest.php.
References $name, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), list, Title\newFromText(), and Revision\RAW.
Test editing of sections.
Definition at line 201 of file ApiEditPageTest.php.
References $e, $name, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), fail, UsageException\getCodeString(), list, ContentHandler\makeContent(), Title\newFromText(), and Revision\RAW.
Definition at line 99 of file ApiEditPageTest.php.
References $name, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), and Title\newFromText().