<?php
-class LicensesTest extends PHPUnit_Framework_TestCase {
+/**
+ * @covers Licenses
+ */
+class LicensesTest extends MediaWikiTestCase {
- function testLicenses() {
+ public function testLicenses() {
$str = "
* Free licenses:
** GFDL|Debian disagrees
'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' ) );
}