9 class ApiStashEditTest
extends ApiTestCase
{
11 public function testBasicEdit() {
12 $apiResult = $this->doApiRequestWithToken(
14 'action' => 'stashedit',
15 'title' => 'ApistashEdit_Page',
16 'contentmodel' => 'wikitext',
17 'contentformat' => 'text/x-wiki',
18 'text' => 'Text for ' . __METHOD__
. ' page',
22 $apiResult = $apiResult[0];
23 $this->assertArrayHasKey( 'stashedit', $apiResult );
24 $this->assertEquals( 'stashed', $apiResult['stashedit']['status'] );