aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/page
diff options
context:
space:
mode:
authordaniel <dkinzler@wikimedia.org>2025-01-07 17:30:38 +0100
committerAaron Schulz <aschulz@wikimedia.org>2025-01-21 16:55:03 +0000
commit75dec01ee48e94e2013827fee4d2d02534af8b2a (patch)
tree479eab7870fb1639d49340f7d1cc9f75a0b8fde3 /tests/phpunit/includes/page
parent54989cd56e5de0c1d1d8bcf2efadd2032bf6f995 (diff)
downloadmediawikicore-75dec01ee48e94e2013827fee4d2d02534af8b2a.tar.gz
mediawikicore-75dec01ee48e94e2013827fee4d2d02534af8b2a.zip
DomainEvent: Support type hierarchies
Why: - It's useful to be able to listen to sets of compatible event types. What: - Make DomainEvents aware of a list of types they are compatible with. - Make EventDispatchEngine dispatch to all compatible listeners, registered for any of the supported types. - Move all page events to their own namespace Bug: T384330 Change-Id: I96bde2cfaf198e409a6ef3a24101ee7d02d57959
Diffstat (limited to 'tests/phpunit/includes/page')
-rw-r--r--tests/phpunit/includes/page/MovePageTest.php2
-rw-r--r--tests/phpunit/includes/page/UndeletePageTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/page/MovePageTest.php b/tests/phpunit/includes/page/MovePageTest.php
index 7d0616492cb8..21e451a61620 100644
--- a/tests/phpunit/includes/page/MovePageTest.php
+++ b/tests/phpunit/includes/page/MovePageTest.php
@@ -5,10 +5,10 @@ use MediaWiki\Content\WikitextContent;
use MediaWiki\Interwiki\InterwikiLookup;
use MediaWiki\MainConfigNames;
use MediaWiki\MediaWikiServices;
+use MediaWiki\Page\Event\PageUpdatedEvent;
use MediaWiki\Page\MovePage;
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Revision\SlotRecord;
-use MediaWiki\Storage\PageUpdatedEvent;
use MediaWiki\Tests\Language\LanguageEventIngressSpyTrait;
use MediaWiki\Tests\recentchanges\ChangeTrackingEventIngressSpyTrait;
use MediaWiki\Tests\Rest\Handler\MediaTestTrait;
diff --git a/tests/phpunit/includes/page/UndeletePageTest.php b/tests/phpunit/includes/page/UndeletePageTest.php
index c631df196d0b..69dedf59a24f 100644
--- a/tests/phpunit/includes/page/UndeletePageTest.php
+++ b/tests/phpunit/includes/page/UndeletePageTest.php
@@ -2,10 +2,10 @@
use MediaWiki\CommentStore\CommentStoreComment;
use MediaWiki\Content\ContentHandler;
+use MediaWiki\Page\Event\PageUpdatedEvent;
use MediaWiki\Page\PageIdentityValue;
use MediaWiki\Page\UndeletePage;
use MediaWiki\Revision\SlotRecord;
-use MediaWiki\Storage\PageUpdatedEvent;
use MediaWiki\Tests\Language\LanguageEventIngressSpyTrait;
use MediaWiki\Tests\recentchanges\ChangeTrackingEventIngressSpyTrait;
use MediaWiki\Tests\Search\SearchEventIngressSpyTrait;