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