mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-24 05:34:23 +00:00
8f44150300
Change-Id: I57b56d285bac4b41e81f656f3c1ddceee4620fb5
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Notifications\Test\Integration;
|
|
|
|
use MediaWiki\Extension\Notifications\AttributeManager;
|
|
use MediaWiki\Extension\Notifications\Push\NotificationServiceClient;
|
|
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
|
|
use MediaWiki\Extension\Notifications\Services;
|
|
use MediaWiki\MediaWikiServices;
|
|
use MediaWikiIntegrationTestCase;
|
|
|
|
/**
|
|
* @covers \MediaWiki\Extension\Notifications\Services
|
|
* @group Database
|
|
*/
|
|
class ServicesTest extends MediaWikiIntegrationTestCase {
|
|
|
|
/** @var Services */
|
|
private $echoServices;
|
|
|
|
protected function setUp(): void {
|
|
parent::setUp();
|
|
$this->echoServices = Services::getInstance();
|
|
}
|
|
|
|
public function testWrap(): void {
|
|
$services = Services::wrap( MediaWikiServices::getInstance() );
|
|
$this->assertInstanceOf( Services::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 );
|
|
}
|
|
|
|
}
|