mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-11 07:26:29 +00:00
c76761eff3
Bug: T305667 Change-Id: I5a7846a0fc383bddbf6511d6ba73c8be7d7760c7
20 lines
512 B
PHP
20 lines
512 B
PHP
<?php
|
|
|
|
use MediaWiki\Extension\Notifications\Push\Utils;
|
|
|
|
/** @covers \MediaWiki\Extension\Notifications\Push\Utils */
|
|
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 ) );
|
|
}
|
|
|
|
}
|