X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiEditPageTest.php;h=3179a4522844951f53fd4164fbab5c9d0ad487f4;hb=5ba12e2896a71d5ae8be2f404934e2dbe1f0abbc;hp=9f8c13994e73140bd1ae1befcb8db552ce852317;hpb=1e37631e6482ce7b540f61c7245cb5f5f627dbe4;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php index 9f8c13994e..3179a45228 100644 --- a/tests/phpunit/includes/api/ApiEditPageTest.php +++ b/tests/phpunit/includes/api/ApiEditPageTest.php @@ -161,14 +161,6 @@ class ApiEditPageTest extends ApiTestCase { // -- create page (or not) ----------------------------------------- if ( $text !== null ) { - if ( $text === '' ) { - // can't create an empty page, so create it with some content - $this->doApiRequestWithToken( array( - 'action' => 'edit', - 'title' => $name, - 'text' => '(dummy)', ) ); - } - list( $re ) = $this->doApiRequestWithToken( array( 'action' => 'edit', 'title' => $name,