MediaWiki  1.23.2
LicensesTest.php
Go to the documentation of this file.
1 <?php
2 
7 
8  public function testLicenses() {
9  $str = "
10 * Free licenses:
11 ** GFDL|Debian disagrees
12 ";
13 
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' ) );
24  }
25 }
LicensesTest\testLicenses
testLicenses()
Definition: LicensesTest.php:8
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Licenses
A License class for use on Special:Upload.
Definition: Licenses.php:30
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
LicensesTest
@covers Licenses
Definition: LicensesTest.php:6
name
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at name
Definition: design.txt:12