mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 19:36:48 +00:00
23 lines
486 B
PHP
23 lines
486 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @group medium
|
||
|
* @group API
|
||
|
* @covers \EchoPush\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 );
|
||
|
}
|
||
|
|
||
|
}
|