| 1 |
<?php |
| 2 |
|
| 3 |
namespace MediaWiki\Extension\DiscussionTools\Tests; |
| 4 |
|
| 5 |
use MediaWiki\Extension\DiscussionTools\ContentThreadItemSet; |
| 6 |
use MediaWiki\Extension\DiscussionTools\Notifications\EventDispatcher; |
| 7 |
use MediaWiki\Page\PageIdentity; |
| 8 |
use MediaWiki\Revision\RevisionRecord; |
| 9 |
use MediaWiki\Title\Title; |
| 10 |
use MediaWiki\User\UserIdentity; |
| 11 |
|
| 12 |
class MockEventDispatcher extends EventDispatcher { |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
public static function generateEventsFromItemSets( |
| 22 |
array &$events, |
| 23 |
ContentThreadItemSet $oldItemSet, |
| 24 |
ContentThreadItemSet $newItemSet, |
| 25 |
RevisionRecord $newRevRecord, |
| 26 |
PageIdentity $title, |
| 27 |
UserIdentity $user |
| 28 |
): void { |
| 29 |
parent::generateEventsFromItemSets( |
| 30 |
$events, |
| 31 |
$oldItemSet, |
| 32 |
$newItemSet, |
| 33 |
$newRevRecord, |
| 34 |
$title, |
| 35 |
$user |
| 36 |
); |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
public static function addCommentChangeTag( RevisionRecord $newRevRecord ): void { |
| 43 |
} |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
protected static function addAutoSubscription( UserIdentity $user, Title $title, string $itemName ): void { |
| 49 |
} |
| 50 |
|
| 51 |
} |