dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "mediawiki.jqueryMsg: Prevent default action for functions as external link"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
ApiEditPageTest.php
diff --git
a/tests/phpunit/includes/api/ApiEditPageTest.php
b/tests/phpunit/includes/api/ApiEditPageTest.php
index
9f8c139
..
3179a45
100644
(file)
--- 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 ) {
// -- 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,
list( $re ) = $this->doApiRequestWithToken( array(
'action' => 'edit',
'title' => $name,