Merge "Hard deprecrate Language::viewPrevNext()"
[lhc/web/wiklou.git] / tests / phpunit / includes / LicensesTest.php
1 <?php
2
3 /**
4 * @covers Licenses
5 */
6 class LicensesTest extends MediaWikiTestCase {
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 }