Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/tests/phpunit/unit/includes/actions/ActionInfoTest.php
Ðазад
<?php use MediaWiki\Actions\ActionInfo; /** * @covers \MediaWiki\Actions\ActionInfo * * @author Daniel Kinzler */ class ActionInfoTest extends MediaWikiUnitTestCase { public static function provideSpec() { yield 'true values' => [ [ 'name' => 'testing', 'restriction' => 'foo', 'requiresUnblock' => true, 'requiresWrite' => true, 'needsReadRights' => true, ] ]; yield 'false values' => [ [ 'name' => 'testing', 'restriction' => null, 'requiresUnblock' => false, 'requiresWrite' => false, 'needsReadRights' => false, ] ]; } /** * @dataProvider provideSpec */ public function testGetters( array $spec ) { $info = new ActionInfo( $spec ); $this->assertSame( $spec['name'], $info->getName() ); $this->assertSame( $spec['restriction'], $info->getRestriction() ); $this->assertSame( $spec['requiresUnblock'], $info->requiresUnblock() ); $this->assertSame( $spec['requiresWrite'], $info->requiresWrite() ); $this->assertSame( $spec['needsReadRights'], $info->needsReadRights() ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка