Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7398132
NotificationServiceClientTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
829 B
Referenced Files
None
Subscribers
None
NotificationServiceClientTest.php
View Options
<?php
namespace
MediaWiki\Extension\Notifications\Test\Integration\Push
;
use
MediaWiki\Extension\Notifications\Services
;
use
MediaWikiIntegrationTestCase
;
use
MockHttpTrait
;
use
MWHttpRequest
;
use
Wikimedia\TestingAccessWrapper
;
/** @covers \MediaWiki\Extension\Notifications\Push\NotificationServiceClient */
class
NotificationServiceClientTest
extends
MediaWikiIntegrationTestCase
{
use
MockHttpTrait
;
public
function
testConstructRequest
():
void
{
$this
->
installMockHttp
(
'hi'
);
$client
=
Services
::
getInstance
()->
getPushNotificationServiceClient
();
$client
=
TestingAccessWrapper
::
newFromObject
(
$client
);
$payload
=
[
'deviceTokens'
=>
[
'foo'
],
'messageType'
=>
'checkEchoV1'
];
$request
=
$client
->
constructRequest
(
'fcm'
,
$payload
);
$this
->
assertInstanceOf
(
MWHttpRequest
::
class
,
$request
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 15:04 (20 m, 2 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
25/00/832b8d0fe378620a245d6813b497
Default Alt Text
NotificationServiceClientTest.php (829 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment