Merge "Bug 35623 - createAndPromote.php: Change to allow promotion only"
[lhc/web/wiklou.git] / tests / phpunit / includes / LicensesTest.php
1 <?php
2
3 class LicensesTest extends MediaWikiTestCase {
4
5 function testLicenses() {
6 $str = "
7 * Free licenses:
8 ** GFDL|Debian disagrees
9 ";
10
11 $lc = new Licenses( array(
12 'fieldname' => 'FooField',
13 'type' => 'select',
14 'section' => 'description',
15 'id' => 'wpLicense',
16 'label' => 'A label text', # Note can't test label-message because $wgOut is not defined
17 'name' => 'AnotherName',
18 'licenses' => $str,
19 ) );
20 $this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );
21 }
22 }