MediaWiki  REL1_22
ApiEditPageTest Class Reference

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

Inheritance diagram for ApiEditPageTest:
Collaboration diagram for ApiEditPageTest:

List of all members.

Public Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 tearDown ()
 testEdit ()
 testEditAppend ($text, $op, $append, $expected)
 provideEditAppend
 testEditConflict ()
 testEditConflict_bug41990 ()
 testEditConflict_redirect ()
 testEditNewSection ()
 Test action=edit&section=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)

Detailed Description

Tests for MediaWiki api.php?action=edit.

Author:
Daniel Kinzler

API Database medium

Definition at line 12 of file ApiEditPageTest.php.


Member Function Documentation

Definition at line 127 of file ApiEditPageTest.php.

References array(), empty, and page.

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from ApiTestCase.

Definition at line 14 of file ApiEditPageTest.php.

References $wgContLang, cache, MWNamespace\getCanonicalNamespaces(), and global.

ApiEditPageTest::testEditAppend ( text,
op,
append,
expected 
)

provideEditAppend

Definition at line 153 of file ApiEditPageTest.php.

References $count, $name, array(), ApiTestCase\doApiRequestWithToken(), list, and Title\newFromText().

Test action=edit&section=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 236 of file ApiEditPageTest.php.

References $name, array(), ApiTestCase\doApiRequestWithToken(), WikiPage\factory(), list, Title\newFromText(), and Revision\RAW.


The documentation for this class was generated from the following file: