mediawiki-extensions-Discus.../tests/phpunit/MockSubscriptionStore.php
Bartosz Dziewoński 5103e651be Add tests for CommentFormatter::postprocessTopicSubscription
Change-Id: Ief9648b8805fadcc170c54b627eb669cc8b907b6
2021-04-21 11:57:25 +00:00

33 lines
775 B
PHP

<?php
namespace MediaWiki\Extension\DiscussionTools\Tests;
use MediaWiki\Extension\DiscussionTools\SubscriptionStore;
use MediaWiki\User\UserIdentity;
class MockSubscriptionStore extends SubscriptionStore {
/**
* @param mixed ...$args Unused, required for inheritance
*/
public function __construct( ...$args ) {
}
/**
* @param UserIdentity $user Unused, required for inheritance
* @param string|null $itemName Unused, required for inheritance
* @param int|null $state Unused, required for inheritance
* @param array $options Unused, required for inheritance
* @return array
*/
public function getSubscriptionItemsForUser(
UserIdentity $user,
?string $itemName = null,
?int $state = null,
array $options = []
) : array {
return [];
}
}