Page MenuHomeWickedGov Phorge

ActionRestrictionTest.php
No OneTemporary

Size
792 B
Referenced Files
None
Subscribers
None

ActionRestrictionTest.php

<?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

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)

Event Timeline