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
Move CSRF token handling into MediaWiki\Session\Session
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
ApiCreateAccountTest.php
diff --git
a/tests/phpunit/includes/api/ApiCreateAccountTest.php
b/tests/phpunit/includes/api/ApiCreateAccountTest.php
index
3945102
..
35905c5
100644
(file)
--- a/
tests/phpunit/includes/api/ApiCreateAccountTest.php
+++ b/
tests/phpunit/includes/api/ApiCreateAccountTest.php
@@
-10,7
+10,6
@@
class ApiCreateAccountTest extends ApiTestCase {
protected function setUp() {
parent::setUp();
class ApiCreateAccountTest extends ApiTestCase {
protected function setUp() {
parent::setUp();
- LoginForm::setCreateaccountToken();
$this->setMwGlobals( array( 'wgEnableEmail' => true ) );
}
$this->setMwGlobals( array( 'wgEnableEmail' => true ) );
}
@@
-114,7
+113,7
@@
class ApiCreateAccountTest extends ApiTestCase {
public function testNoName() {
$this->doApiRequest( array(
'action' => 'createaccount',
public function testNoName() {
$this->doApiRequest( array(
'action' => 'createaccount',
- 'token' => LoginForm::getCreateaccountToken(),
+ 'token' => LoginForm::getCreateaccountToken()
->toString()
,
'password' => 'password',
) );
}
'password' => 'password',
) );
}
@@
-127,7
+126,7
@@
class ApiCreateAccountTest extends ApiTestCase {
$this->doApiRequest( array(
'action' => 'createaccount',
'name' => 'testName',
$this->doApiRequest( array(
'action' => 'createaccount',
'name' => 'testName',
- 'token' => LoginForm::getCreateaccountToken(),
+ 'token' => LoginForm::getCreateaccountToken()
->toString()
,
) );
}
) );
}
@@
-139,7
+138,7
@@
class ApiCreateAccountTest extends ApiTestCase {
$this->doApiRequest( array(
'action' => 'createaccount',
'name' => 'Apitestsysop',
$this->doApiRequest( array(
'action' => 'createaccount',
'name' => 'Apitestsysop',
- 'token' => LoginForm::getCreateaccountToken(),
+ 'token' => LoginForm::getCreateaccountToken()
->toString()
,
'password' => 'password',
'email' => 'test@domain.test',
) );
'password' => 'password',
'email' => 'test@domain.test',
) );
@@
-153,7
+152,7
@@
class ApiCreateAccountTest extends ApiTestCase {
$this->doApiRequest( array(
'action' => 'createaccount',
'name' => 'Test User',
$this->doApiRequest( array(
'action' => 'createaccount',
'name' => 'Test User',
- 'token' => LoginForm::getCreateaccountToken(),
+ 'token' => LoginForm::getCreateaccountToken()
->toString()
,
'password' => 'password',
'email' => 'invalid',
) );
'password' => 'password',
'email' => 'invalid',
) );