Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5979449
ActionRestrictionTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
792 B
Referenced Files
None
Subscribers
None
ActionRestrictionTest.php
View Options
<?php
namespace
MediaWiki\Tests\Block\Restriction
;
use
MediaWiki\Block\Restriction\ActionRestriction
;
use
MediaWiki\Title\Title
;
/**
* @group Blocking
* @covers \MediaWiki\Block\Restriction\AbstractRestriction
* @covers \MediaWiki\Block\Restriction\ActionRestriction
*/
class
ActionRestrictionTest
extends
RestrictionTestCase
{
public
function
testMatches
()
{
$class
=
$this
->
getClass
();
$restriction
=
new
$class
(
1
,
2
);
$this
->
assertFalse
(
$restriction
->
matches
(
$this
->
createMock
(
Title
::
class
)
)
);
}
public
function
testGetType
()
{
$class
=
$this
->
getClass
();
$restriction
=
new
$class
(
1
,
2
);
$this
->
assertEquals
(
'action'
,
$restriction
->
getType
()
);
}
/**
* @inheritDoc
*/
protected
function
getClass
()
{
return
ActionRestriction
::
class
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:54 (5 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
20/43/c8be4d1bc755c37934931e53d094
Default Alt Text
ActionRestrictionTest.php (792 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment