aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiChangeContentModelTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/ApiChangeContentModelTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiChangeContentModelTest.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/phpunit/includes/api/ApiChangeContentModelTest.php b/tests/phpunit/includes/api/ApiChangeContentModelTest.php
index 4b522b6c758c..4d9191306eae 100644
--- a/tests/phpunit/includes/api/ApiChangeContentModelTest.php
+++ b/tests/phpunit/includes/api/ApiChangeContentModelTest.php
@@ -99,12 +99,11 @@ class ApiChangeContentModelTest extends ApiTestCase {
public function testInvalidContent() {
$wikipage = $this->getExistingTestPage( 'PageWithTextThatIsNotValidJSON' );
$invalidJSON = 'Foo\nBar\nEaster egg\nT22281';
- $wikipage->doEditContent(
+ $wikipage->doUserEditContent(
ContentHandler::makeContent( $invalidJSON, $wikipage->getTitle() ),
+ $this->getTestSysop()->getUser(),
'EditSummaryForThisTest',
- EDIT_UPDATE | EDIT_SUPPRESS_RC,
- false,
- $this->getTestSysop()->getUser()
+ EDIT_UPDATE | EDIT_SUPPRESS_RC
);
$this->assertSame(
'wikitext',
@@ -214,12 +213,11 @@ class ApiChangeContentModelTest extends ApiTestCase {
$title = Title::newFromText( 'Dummy:NoDirectEditing' );
$dummyContent = ContentHandler::getForModelID( 'testing' )->makeEmptyContent();
- WikiPage::factory( $title )->doEditContent(
+ WikiPage::factory( $title )->doUserEditContent(
$dummyContent,
+ $this->getTestSysop()->getUser(),
'EditSummaryForThisTest',
- EDIT_NEW | EDIT_SUPPRESS_RC,
- false,
- $this->getTestSysop()->getUser()
+ EDIT_NEW | EDIT_SUPPRESS_RC
);
$this->assertSame(
'testing',