Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7469388
ApiEchoPushSubscriptionsTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
651 B
Referenced Files
None
Subscribers
None
ApiEchoPushSubscriptionsTest.php
View Options
<?php
namespace
MediaWiki\Extension\Notifications\Test\API
;
use
MediaWiki\Api\ApiUsageException
;
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
->
overrideConfigValue
(
'EchoEnablePush'
,
true
);
$params
=
[
'action'
=>
'echopushsubscriptions'
,
'command'
=>
'create'
,
'platform'
=>
'apns'
,
'platformtoken'
=>
'ABC123'
,
];
$this
->
expectException
(
ApiUsageException
::
class
);
$this
->
doApiRequest
(
$params
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 07:01 (3 d, 15 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
62/c8/819c47b046bda1448f5452af65a7
Default Alt Text
ApiEchoPushSubscriptionsTest.php (651 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment