aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit
diff options
context:
space:
mode:
authorAaron Schulz <aschulz@wikimedia.org>2025-04-03 04:28:35 -0700
committerAaron Schulz <aschulz@wikimedia.org>2025-04-03 14:34:48 -0700
commit1265838f02ebe74ec3b722a0b629fb065dde3f11 (patch)
treeeefcf74f2ecf13a21362ada1c29a39114f4f6584 /tests/phpunit
parenta884a46ed119b0927f7a02dc0cdb25bb2562898d (diff)
downloadmediawikicore-1265838f02ebe74ec3b722a0b629fb065dde3f11.tar.gz
mediawikicore-1265838f02ebe74ec3b722a0b629fb065dde3f11.zip
DomainEvent: rename EventIngressBase to DomainEventIngress
Bug: T390735 Change-Id: I0ebec537bb15925e8507ee6934cd4a17973c536a
Diffstat (limited to 'tests/phpunit')
-rw-r--r--tests/phpunit/unit/includes/DomainEvent/DomainEventIngressTest.php (renamed from tests/phpunit/unit/includes/DomainEvent/EventIngressBaseTest.php)10
-rw-r--r--tests/phpunit/unit/includes/DomainEvent/EventDispatchEngineTest.php4
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/phpunit/unit/includes/DomainEvent/EventIngressBaseTest.php b/tests/phpunit/unit/includes/DomainEvent/DomainEventIngressTest.php
index 7bc57d4d8a60..3ba1c935f801 100644
--- a/tests/phpunit/unit/includes/DomainEvent/EventIngressBaseTest.php
+++ b/tests/phpunit/unit/includes/DomainEvent/DomainEventIngressTest.php
@@ -2,17 +2,17 @@
namespace MediaWiki\Tests\DomainEvent;
+use MediaWiki\DomainEvent\DomainEventIngress;
use MediaWiki\DomainEvent\DomainEventSource;
use MediaWiki\DomainEvent\EventDispatchEngine;
-use MediaWiki\DomainEvent\EventIngressBase;
use MediaWikiUnitTestCase;
use Wikimedia\ObjectFactory\ObjectFactory;
use Wikimedia\Services\ServiceContainer;
/**
- * @covers \MediaWiki\DomainEvent\EventIngressBase
+ * @covers \MediaWiki\DomainEvent\DomainEventIngress
*/
-class EventIngressBaseTest extends MediaWikiUnitTestCase {
+class DomainEventIngressTest extends MediaWikiUnitTestCase {
private function newSpyEventSource( &$trace ): DomainEventSource {
$objectFactory = new ObjectFactory(
@@ -37,7 +37,7 @@ class EventIngressBaseTest extends MediaWikiUnitTestCase {
$source = $this->newSpyEventSource( $trace );
// Pass the list of events as a constructor parameter
- $subscriber = new class extends EventIngressBase {
+ $subscriber = new class extends DomainEventIngress {
public function handleFooEvent() {
// no-op
@@ -72,7 +72,7 @@ class EventIngressBaseTest extends MediaWikiUnitTestCase {
$events = [ 'Foo', 'Bar' ];
// Pass nothing to the constructor, rely on initSubscriber()
- $subscriber = new class () extends EventIngressBase {
+ $subscriber = new class () extends DomainEventIngress {
public function handleFooEvent() {
// no-op
}
diff --git a/tests/phpunit/unit/includes/DomainEvent/EventDispatchEngineTest.php b/tests/phpunit/unit/includes/DomainEvent/EventDispatchEngineTest.php
index 4ac3026e5104..3a96dc96dbd0 100644
--- a/tests/phpunit/unit/includes/DomainEvent/EventDispatchEngineTest.php
+++ b/tests/phpunit/unit/includes/DomainEvent/EventDispatchEngineTest.php
@@ -4,10 +4,10 @@ namespace MediaWiki\Tests\DomainEvent;
use MediaWiki\Deferred\DeferredUpdates;
use MediaWiki\DomainEvent\DomainEvent;
+use MediaWiki\DomainEvent\DomainEventIngress;
use MediaWiki\DomainEvent\DomainEventSource;
use MediaWiki\DomainEvent\DomainEventSubscriber;
use MediaWiki\DomainEvent\EventDispatchEngine;
-use MediaWiki\DomainEvent\EventIngressBase;
use MediaWiki\Tests\MockDatabase;
use MediaWikiUnitTestCase;
use Wikimedia\ObjectFactory\ObjectFactory;
@@ -274,7 +274,7 @@ class EventDispatchEngineTest extends MediaWikiUnitTestCase {
$trace = [];
- $subscriber = new class ( $trace ) extends EventIngressBase {
+ $subscriber = new class ( $trace ) extends DomainEventIngress {
private $trace;
public function __construct( &$trace ) {