From 5b105a5d0d78bf323cc9e34e0901b2bd5600d6e2 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Thu, 16 Dec 2010 17:34:13 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/LicensesTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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' ) ); } } -- 2.20.1