| Current Path : /var/www/element/data/www/wiki.element.ru/tests/phpunit/includes/ |
| Current File : /var/www/element/data/www/wiki.element.ru/tests/phpunit/includes/LicensesTest.php |
<?php
class LicensesTest extends MediaWikiTestCase {
function testLicenses() {
$str = "
* Free licenses:
** GFDL|Debian disagrees
";
$lc = new Licenses( array(
'fieldname' => 'FooField',
'type' => 'select',
'section' => 'description',
'id' => 'wpLicense',
'label' => 'A label text', # Note can't test label-message because $wgOut is not defined
'name' => 'AnotherName',
'licenses' => $str,
) );
$this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );
}
}