Follow-up r78452: if you're going to try and declare an HTMLFormField without 80...
authorHappy-melon <happy-melon@users.mediawiki.org>
Thu, 16 Dec 2010 17:34:13 +0000 (17:34 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Thu, 16 Dec 2010 17:34:13 +0000 (17:34 +0000)
tests/phpunit/includes/LicensesTest.php

index 0008a77..2365fb6 100644 (file)
@@ -8,7 +8,15 @@ class LicensesTest extends PHPUnit_Framework_TestCase {
 ** GFDL|Debian disagrees
 ";
 
-               $lc = new Licenses( array( 'licenses' => $str ) );
+               $lc = new Licenses( array(
+                       'fieldname' => 'FooField',
+                       'type' => 'select',
+                       'section' => 'description',
+                       'id' => 'wpLicense',
+                       'label-message' => 'license',
+                       'name' => 'AnotherName', 
+                       'licenses' => $str,             
+               ) );
                $this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );
        }
 }