mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2025-01-07 12:24:35 +00:00
1bc5b6daf8
Change-Id: Ieeeaf80d04b060d6dbca1959d5e66f4c69c5a7f2
43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<?php
|
|
|
|
use MediaWiki\Extension\Notifications\AttributeManager;
|
|
use MediaWiki\Extension\Notifications\Push\NotificationServiceClient;
|
|
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
|
|
use MediaWiki\MediaWikiServices;
|
|
|
|
/**
|
|
* @covers EchoServices
|
|
* @group Database
|
|
*/
|
|
class EchoServicesTest extends MediaWikiIntegrationTestCase {
|
|
|
|
/** @var EchoServices */
|
|
private $echoServices;
|
|
|
|
protected function setUp(): void {
|
|
parent::setUp();
|
|
$this->echoServices = EchoServices::getInstance();
|
|
}
|
|
|
|
public function testWrap(): void {
|
|
$services = EchoServices::wrap( MediaWikiServices::getInstance() );
|
|
$this->assertInstanceOf( EchoServices::class, $services );
|
|
}
|
|
|
|
public function testGetPushNotificationServiceClient(): void {
|
|
$serviceClient = $this->echoServices->getPushNotificationServiceClient();
|
|
$this->assertInstanceOf( NotificationServiceClient::class, $serviceClient );
|
|
}
|
|
|
|
public function testGetPushSubscriptionManager(): void {
|
|
$subscriptionManager = $this->echoServices->getPushSubscriptionManager();
|
|
$this->assertInstanceOf( SubscriptionManager::class, $subscriptionManager );
|
|
}
|
|
|
|
public function testGetAttributeManager(): void {
|
|
$attributeManager = $this->echoServices->getAttributeManager();
|
|
$this->assertInstanceOf( AttributeManager::class, $attributeManager );
|
|
}
|
|
|
|
}
|