mediawiki-extensions-Discus.../tests/phpunit/MockSubscriptionStore.php
Bartosz Dziewoński 475aa80057 Fetch user's topic subscriptions on the page in a single query
Previously, we have made a query per each topic on the page.

Bug: T281000
Change-Id: I1029e62a65fc191ca37e1178ea7ffc55afafa1b9
2021-04-28 21:54:26 +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 array|null $itemNames 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,
?array $itemNames = null,
?int $state = null,
array $options = []
) : array {
return [];
}
}