MediaWiki  REL1_24
LicensesTest.php
Go to the documentation of this file.
00001 <?php
00002 
00006 class LicensesTest extends MediaWikiTestCase {
00007 
00008     public function testLicenses() {
00009         $str = "
00010 * Free licenses:
00011 ** GFDL|Debian disagrees
00012 ";
00013 
00014         $lc = new Licenses( array(
00015             'fieldname' => 'FooField',
00016             'type' => 'select',
00017             'section' => 'description',
00018             'id' => 'wpLicense',
00019             'label' => 'A label text', # Note can't test label-message because $wgOut is not defined
00020             'name' => 'AnotherName',
00021             'licenses' => $str,
00022         ) );
00023         $this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );
00024     }
00025 }