2021-04-19 19:42:53 +00:00
|
|
|
<?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
|
2021-04-23 18:54:49 +00:00
|
|
|
* @param array|null $itemNames Unused, required for inheritance
|
2021-08-17 20:23:27 +00:00
|
|
|
* @param int[]|null $state Unused, required for inheritance
|
2021-04-19 19:42:53 +00:00
|
|
|
* @param array $options Unused, required for inheritance
|
2021-08-17 20:23:27 +00:00
|
|
|
* @return SubscriptionItem[]
|
2021-04-19 19:42:53 +00:00
|
|
|
*/
|
|
|
|
public function getSubscriptionItemsForUser(
|
|
|
|
UserIdentity $user,
|
2021-04-23 18:54:49 +00:00
|
|
|
?array $itemNames = null,
|
2021-08-17 20:23:27 +00:00
|
|
|
?array $state = null,
|
2021-04-19 19:42:53 +00:00
|
|
|
array $options = []
|
2021-07-22 07:25:13 +00:00
|
|
|
): array {
|
2021-04-19 19:42:53 +00:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|