mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I10e9f9f6ddd9539ff95636902219c0e9fa35fc0f
This commit is contained in:
parent
091f5fd064
commit
2c3d370846
|
@ -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",
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue