build: Updating mediawiki/mediawiki-codesniffer to 38.0.0

Change-Id: I10e9f9f6ddd9539ff95636902219c0e9fa35fc0f
This commit is contained in:
libraryupgrader 2021-10-23 21:59:04 +00:00
parent 091f5fd064
commit 2c3d370846
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "37.0.0",
"mediawiki/mediawiki-codesniffer": "38.0.0",
"mediawiki/mediawiki-phan-config": "0.11.0",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "0.5.0",

View file

@ -44,7 +44,7 @@ class NotificationsTest extends MediaWikiIntegrationTestCase {
$ur->setContext( $context );
$ur->doSaveUserGroups( $user, [ 'sysop' ], [], 'reason' );
$event = self::getLatestNotification( $user );
$this->assertEquals( $event->getType(), 'user-rights' );
$this->assertEquals( 'user-rights', $event->getType() );
$this->assertEquals( $this->sysop->getName(), $event->getAgent()->getName() );
$extra = $event->getExtra();
$this->assertArrayHasKey( 'add', $extra );

View file

@ -131,10 +131,10 @@ class EchoAttributeManagerTest extends MediaWikiUnitTestCase {
]
];
$manager = $this->getAttributeManager( $notif, $category );
$this->assertEquals( $manager->getNotificationCategory( 'event_one' ), 'category_one' );
$this->assertEquals( 'category_one', $manager->getNotificationCategory( 'event_one' ) );
$manager = $this->getAttributeManager( $notif );
$this->assertEquals( $manager->getNotificationCategory( 'event_one' ), 'other' );
$this->assertEquals( 'other', $manager->getNotificationCategory( 'event_one' ) );
$notif = [
'event_one' => [
@ -147,7 +147,7 @@ class EchoAttributeManagerTest extends MediaWikiUnitTestCase {
]
];
$manager = $this->getAttributeManager( $notif, $category );
$this->assertEquals( $manager->getNotificationCategory( 'event_one' ), 'other' );
$this->assertEquals( 'other', $manager->getNotificationCategory( 'event_one' ) );
}
public function testGetCategoryPriority() {