wiki.techinc.nl/tests/phpunit/includes/LicensesTest.php
addshore 749599fc3c @covers tags for unit tests
Change-Id: I2b486b38326bf23bd379efba2142034e24c0745f
2013-10-24 18:22:57 +01:00

25 lines
529 B
PHP

<?php
/**
* @covers Licenses
*/
class LicensesTest extends MediaWikiTestCase {
public 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' ) );
}
}