wiki.techinc.nl/tests/phpunit/includes/api/ApiDisabledTest.php
Reedy 85396a9c99 tests: Fix @covers and @coversDefaultClass to have leading \
Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
2024-02-16 22:43:56 +00:00

18 lines
342 B
PHP

<?php
/**
* @group API
* @group medium
*
* @covers \ApiDisabled
*/
class ApiDisabledTest extends ApiTestCase {
public function testDisabled() {
$this->mergeMwGlobalArrayValue( 'wgAPIModules',
[ 'login' => 'ApiDisabled' ] );
$this->expectApiErrorCode( 'moduledisabled' );
$this->doApiRequest( [ 'action' => 'login' ] );
}
}