1<?php 2 3/** 4 * @covers Licenses 5 */ 6class LicensesTest extends \MediaWikiUnitTestCase { 7 8 public function testLicenses() { 9 $str = " 10* Free licenses: 11** GFDL|Debian disagrees 12"; 13 14 $lc = new Licenses( [ 15 'fieldname' => 'FooField', 16 'type' => 'select', 17 'section' => 'description', 18 'id' => 'wpLicense', 19 'label' => 'A label text', # Note can't test label-message because $wgOut is not defined 20 'name' => 'AnotherName', 21 'licenses' => $str, 22 ] ); 23 $this->assertThat( $lc, $this->isInstanceOf( Licenses::class ) ); 24 } 25} 26