Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4193282
ApiDisabledTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
387 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
Aug 20 2026, 19:08 (12 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d5/ed/2a4bf8b10c78245d63f324a07281
Default Alt Text
ApiDisabledTest.php (387 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment