Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/Echo/tests/phpunit/integration/Push/PushNotifierTest.php
Ðазад
<?php namespace MediaWiki\Extension\Notifications\Test\Integration\Push; use MediaWiki\Extension\Notifications\Push\NotificationRequestJob; use MediaWiki\Extension\Notifications\Push\PushNotifier; use MediaWiki\User\CentralId\CentralIdLookup; use MediaWiki\User\User; use MediaWikiIntegrationTestCase; use Wikimedia\TestingAccessWrapper; /** @covers \MediaWiki\Extension\Notifications\Push\PushNotifier */ class PushNotifierTest extends MediaWikiIntegrationTestCase { public function testCreateJob(): void { $user = $this->createMock( User::class ); $centralId = 42; $centralIdLookup = $this->createMock( CentralIdLookup::class ); $centralIdLookup->method( 'centralIdFromLocalUser' ) ->with( $user ) ->willReturn( 42 ); $this->setService( 'CentralIdLookup', $centralIdLookup ); $notifier = TestingAccessWrapper::newFromClass( PushNotifier::class ); $job = $notifier->createJob( $user ); $this->assertInstanceOf( NotificationRequestJob::class, $job ); $this->assertSame( 'EchoPushNotificationRequest', $job->getType() ); $this->assertSame( $centralId, $job->getParams()['centralId'] ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка