summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/tests/phpunit/ffs/MediaWikiExtensionsTest.php')
-rw-r--r--MLEB/Translate/tests/phpunit/ffs/MediaWikiExtensionsTest.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/MLEB/Translate/tests/phpunit/ffs/MediaWikiExtensionsTest.php b/MLEB/Translate/tests/phpunit/ffs/MediaWikiExtensionsTest.php
index db823da8..a2dc72eb 100644
--- a/MLEB/Translate/tests/phpunit/ffs/MediaWikiExtensionsTest.php
+++ b/MLEB/Translate/tests/phpunit/ffs/MediaWikiExtensionsTest.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Test for parsing the special definition file for mediawiki-extensions
* @author Niklas Laxström
@@ -16,8 +17,8 @@ class MediaWikiExtensionsTest extends PHPUnit\Framework\TestCase {
$list = $deps = $autoload = [];
$foo->register( $list, $deps, $autoload );
- $this->assertSame( 1, count( $deps ), 'A dependency to definition file was added' );
- $this->assertEquals( 5, count( $list ), 'Right number of groups were created' );
+ $this->assertCount( 1, $deps, 'A dependency to definition file was added' );
+ $this->assertCount( 5, $list, 'Right number of groups were created' );
$this->assertArrayHasKey( 'ext-wikimediamessages', $list );
$expected = TranslateYaml::load( __DIR__ . '/../data/MediaWikiExtensionTest-conf2.yaml' );
@@ -33,8 +34,8 @@ class MediaWikiExtensionsTest extends PHPUnit\Framework\TestCase {
$this->assertArrayHasKey( 'ext-languagesmodified', $list );
$languages = $list['ext-languagesmodified']->getTranslatableLanguages();
- $this->assertArrayHasKey( 'foo', $languages, 'Whitelisted language is available' );
- $this->assertArrayNotHasKey( 'bar', $languages, 'Blacklisted language is not available' );
+ $this->assertArrayHasKey( 'foo', $languages, 'Included language is available' );
+ $this->assertArrayNotHasKey( 'bar', $languages, 'Excluded language is not available' );
$this->assertArrayHasKey( 'de', $languages, 'Default language is available' );
$this->assertArrayHasKey( 'ext-languagesset', $list );