mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-25 06:03:58 +00:00
a51c944567
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I3d7a1ffe167b69d3f4ce51d0c248c758e1cdd70c
25 lines
554 B
PHP
25 lines
554 B
PHP
<?php
|
|
|
|
use MediaWiki\Tests\Api\ApiTestCase;
|
|
|
|
/**
|
|
* @group medium
|
|
* @group API
|
|
* @covers \MediaWiki\Extension\Notifications\Push\Api\ApiEchoPushSubscriptions
|
|
*/
|
|
class ApiEchoPushSubscriptionsTest extends ApiTestCase {
|
|
|
|
public function testRequiresToken(): void {
|
|
$this->setMwGlobals( 'wgEchoEnablePush', true );
|
|
$params = [
|
|
'action' => 'echopushsubscriptions',
|
|
'command' => 'create',
|
|
'platform' => 'apns',
|
|
'platformtoken' => 'ABC123',
|
|
];
|
|
$this->expectException( ApiUsageException::class );
|
|
$this->doApiRequest( $params );
|
|
}
|
|
|
|
}
|