Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5978751
ApiDisabledTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
388 B
Referenced Files
None
Subscribers
None
ApiDisabledTest.php
View Options
<?php
namespace
MediaWiki\Tests\Api
;
/**
* @group API
* @group medium
*
* @covers \MediaWiki\Api\ApiDisabled
*/
class
ApiDisabledTest
extends
ApiTestCase
{
public
function
testDisabled
()
{
$this
->
mergeMwGlobalArrayValue
(
'wgAPIModules'
,
[
'login'
=>
'ApiDisabled'
]
);
$this
->
expectApiErrorCode
(
'moduledisabled'
);
$this
->
doApiRequest
(
[
'action'
=>
'login'
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:33 (3 d, 22 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
33/0b/f10ae86b7293bc3ddea0aa6344a5
Default Alt Text
ApiDisabledTest.php (388 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment