rdbms: Rename "memCache" to "memStash" in LBFactory
[mediawiki.git] / tests / phpunit / includes / LicensesTest.php
blobc7b3ce897e432f9a42eb7eff396169acb30b2271
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( [
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' ) );