From: Happy-melon Date: Thu, 16 Dec 2010 17:34:13 +0000 (+0000) Subject: Follow-up r78452: if you're going to try and declare an HTMLFormField without 80... X-Git-Tag: 1.31.0-rc.0~33266 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=5b105a5d0d78bf323cc9e34e0901b2bd5600d6e2;p=lhc%2Fweb%2Fwiklou.git Follow-up r78452: if you're going to try and declare an HTMLFormField without 80% of its parameters, it's probably not surprising that it doesn't like it... :-D --- diff --git a/tests/phpunit/includes/LicensesTest.php b/tests/phpunit/includes/LicensesTest.php index 0008a7772d..2365fb6f16 100644 --- a/tests/phpunit/includes/LicensesTest.php +++ b/tests/phpunit/includes/LicensesTest.php @@ -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' ) ); } }