Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7434117
UtilsTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
637 B
Referenced Files
None
Subscribers
None
UtilsTest.php
View Options
<?php
namespace
MediaWiki\Extension\Notifications\Test\Integration\Push
;
use
MediaWiki\Extension\Notifications\Push\Utils
;
use
MediaWikiIntegrationTestCase
;
/**
* @covers \MediaWiki\Extension\Notifications\Push\Utils
* @group Database
*/
class
UtilsTest
extends
MediaWikiIntegrationTestCase
{
public
function
testGetLoggedInPushId
():
void
{
$user
=
$this
->
getTestUser
()->
getUser
();
$this
->
assertGreaterThan
(
0
,
Utils
::
getPushUserId
(
$user
)
);
}
public
function
testGetLoggedOutPushId
():
void
{
$user
=
$this
->
getTestUser
()->
getUser
();
$user
->
doLogout
();
$this
->
assertSame
(
0
,
Utils
::
getPushUserId
(
$user
)
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 12:15 (2 h, 53 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6d/c3/abf1c13e58c4ef675cf1aa9dd2d5
Default Alt Text
UtilsTest.php (637 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment