mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-23 13:13:22 +00:00
38a9330753
Change-Id: I414234f10c16b8ccaa7ddbaf8e9033e70dfceab8
23 lines
516 B
PHP
23 lines
516 B
PHP
<?php
|
|
|
|
/**
|
|
* @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 );
|
|
}
|
|
|
|
}
|