Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4056771
MockEventDispatcher.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
MockEventDispatcher.php
View Options
<?php
namespace
MediaWiki\Extension\DiscussionTools\Tests
;
use
MediaWiki\Extension\DiscussionTools\ContentThreadItemSet
;
use
MediaWiki\Extension\DiscussionTools\Notifications\EventDispatcher
;
use
MediaWiki\Page\PageIdentity
;
use
MediaWiki\Revision\RevisionRecord
;
use
MediaWiki\Title\Title
;
use
MediaWiki\User\UserIdentity
;
class
MockEventDispatcher
extends
EventDispatcher
{
/**
* Public for testing
*
* Note that we can't use TestingAccessWrapper instead of this, because it doesn't support passing
* arguments by reference (causes exceptions like "PHPUnit\Framework\Error\Warning: Parameter 1 to
* ... expected to be a reference, value given").
*/
public
static
function
generateEventsFromItemSets
(
array
&
$events
,
ContentThreadItemSet
$oldItemSet
,
ContentThreadItemSet
$newItemSet
,
RevisionRecord
$newRevRecord
,
PageIdentity
$title
,
UserIdentity
$user
):
void
{
parent
::
generateEventsFromItemSets
(
$events
,
$oldItemSet
,
$newItemSet
,
$newRevRecord
,
$title
,
$user
);
}
/**
* No-op for testing
*/
public
static
function
addCommentChangeTag
(
RevisionRecord
$newRevRecord
):
void
{
}
/**
* No-op for testing
*/
protected
static
function
addAutoSubscription
(
UserIdentity
$user
,
Title
$title
,
string
$itemName
):
void
{
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 16 2026, 03:38 (12 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/c9/eb747b5ba87d6a8ce204ac32e311
Default Alt Text
MockEventDispatcher.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment