X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fchanges%2FCategoryMembershipChangeTest.php;h=4e062ed769d1a376b20eed54a05af3edf42f2ce8;hb=c2211946f7dd4e59faf6d759e9a78bf140699c3e;hp=31929d386a2a1a6b82ca32b9d6c2c6fd5944c456;hpb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php b/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php index 31929d386a..4e062ed769 100644 --- a/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php +++ b/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php @@ -85,9 +85,9 @@ class CategoryMembershipChangeTest extends MediaWikiLangTestCase { $this->assertEquals( self::$pageName, self::$lastNotifyArgs[4]->getPrefixedText() ); $this->assertSame( 0, self::$lastNotifyArgs[5] ); $this->assertSame( 0, self::$lastNotifyArgs[6] ); - $this->assertEquals( null, self::$lastNotifyArgs[7] ); + $this->assertNull( self::$lastNotifyArgs[7] ); $this->assertEquals( 1, self::$lastNotifyArgs[8] ); - $this->assertEquals( null, self::$lastNotifyArgs[9] ); + $this->assertSame( '', self::$lastNotifyArgs[9] ); $this->assertSame( 0, self::$lastNotifyArgs[10] ); } @@ -105,9 +105,9 @@ class CategoryMembershipChangeTest extends MediaWikiLangTestCase { $this->assertEquals( self::$pageName, self::$lastNotifyArgs[4]->getPrefixedText() ); $this->assertSame( 0, self::$lastNotifyArgs[5] ); $this->assertSame( 0, self::$lastNotifyArgs[6] ); - $this->assertEquals( null, self::$lastNotifyArgs[7] ); + $this->assertNull( self::$lastNotifyArgs[7] ); $this->assertEquals( 1, self::$lastNotifyArgs[8] ); - $this->assertEquals( null, self::$lastNotifyArgs[9] ); + $this->assertSame( '', self::$lastNotifyArgs[9] ); $this->assertSame( 0, self::$lastNotifyArgs[10] ); } @@ -126,7 +126,7 @@ class CategoryMembershipChangeTest extends MediaWikiLangTestCase { $this->assertEquals( self::$pageName, self::$lastNotifyArgs[4]->getPrefixedText() ); $this->assertEquals( self::$pageRev->getParentId(), self::$lastNotifyArgs[5] ); $this->assertEquals( $revision->getId(), self::$lastNotifyArgs[6] ); - $this->assertEquals( null, self::$lastNotifyArgs[7] ); + $this->assertNull( self::$lastNotifyArgs[7] ); $this->assertSame( 0, self::$lastNotifyArgs[8] ); $this->assertEquals( '127.0.0.1', self::$lastNotifyArgs[9] ); $this->assertSame( 0, self::$lastNotifyArgs[10] ); @@ -147,7 +147,7 @@ class CategoryMembershipChangeTest extends MediaWikiLangTestCase { $this->assertEquals( self::$pageName, self::$lastNotifyArgs[4]->getPrefixedText() ); $this->assertEquals( self::$pageRev->getParentId(), self::$lastNotifyArgs[5] ); $this->assertEquals( $revision->getId(), self::$lastNotifyArgs[6] ); - $this->assertEquals( null, self::$lastNotifyArgs[7] ); + $this->assertNull( self::$lastNotifyArgs[7] ); $this->assertSame( 0, self::$lastNotifyArgs[8] ); $this->assertEquals( '127.0.0.1', self::$lastNotifyArgs[9] ); $this->assertSame( 0, self::$lastNotifyArgs[10] );