Merge changes I5d11a642,I4ed191bd
[lhc/web/wiklou.git] / tests / phpunit / includes / LicensesTest.php
index 2365fb6..63b2c39 100644 (file)
@@ -1,8 +1,11 @@
 <?php
 
-class LicensesTest extends PHPUnit_Framework_TestCase {
+/**
+ * @covers Licenses
+ */
+class LicensesTest extends MediaWikiTestCase {
 
-       function testLicenses() {
+       public function testLicenses() {
                $str = "
 * Free licenses:
 ** GFDL|Debian disagrees
@@ -13,9 +16,9 @@ class LicensesTest extends PHPUnit_Framework_TestCase {
                        'type' => 'select',
                        'section' => 'description',
                        'id' => 'wpLicense',
-                       'label-message' => 'license',
-                       'name' => 'AnotherName', 
-                       'licenses' => $str,             
+                       'label' => 'A label text', # Note can't test label-message because $wgOut is not defined
+                       'name' => 'AnotherName',
+                       'licenses' => $str,
                ) );
                $this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );
        }