mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-12 07:55:53 +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 );
|
||
|
}
|
||
|
|
||
|
}
|