Merge "Add support for image interlacing of Bitmap type images"
[lhc/web/wiklou.git] / tests / phpunit / includes / LicensesTest.php
index 0008a77..63b2c39 100644 (file)
@@ -1,14 +1,25 @@
 <?php
 
-class LicensesTest extends PHPUnit_Framework_TestCase {
+/**
+ * @covers Licenses
+ */
+class LicensesTest extends MediaWikiTestCase {
 
-       function testLicenses() {
+       public function testLicenses() {
                $str = "
 * Free licenses:
 ** GFDL|Debian disagrees
 ";
 
-               $lc = new Licenses( array( 'licenses' => $str ) );
+               $lc = new Licenses( array(
+                       'fieldname' => 'FooField',
+                       'type' => 'select',
+                       'section' => 'description',
+                       'id' => 'wpLicense',
+                       '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' ) );
        }
 }