Fix TextContent::preSaveTransform() return type
[mediawiki.git] / tests / phpunit / includes / LicensesTest.php
blob63b2c395bd8995cfef250d850e15b5fdcb863470
1 <?php
3 /**
4 * @covers Licenses
5 */
6 class LicensesTest extends MediaWikiTestCase {
8 public function testLicenses() {
9 $str = "
10 * Free licenses:
11 ** GFDL|Debian disagrees
14 $lc = new Licenses( array(
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' ) );