Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4145595
ReadOnlyErrorTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
546 B
Referenced Files
None
Subscribers
None
ReadOnlyErrorTest.php
View Options
<?php
use
MediaWiki\Tests\Unit\DummyServicesTrait
;
/**
* @covers \ReadOnlyError
* @author Addshore
*/
class
ReadOnlyErrorTest
extends
MediaWikiIntegrationTestCase
{
use
DummyServicesTrait
;
public
function
testConstruction
()
{
$reason
=
'This site is read-only for $reasons'
;
$this
->
setService
(
'ReadOnlyMode'
,
$this
->
getDummyReadOnlyMode
(
$reason
)
);
$e
=
new
ReadOnlyError
();
$this
->
assertEquals
(
'readonly'
,
$e
->
title
);
$this
->
assertEquals
(
'readonlytext'
,
$e
->
msg
);
$this
->
assertEquals
(
[
$reason
],
$e
->
params
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 17:42 (5 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
07/46/70ec26145b4d5902922101030fab
Default Alt Text
ReadOnlyErrorTest.php (546 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment