%PDF- %PDF-
Direktori : /proc/thread-self/root/www/varak.net/wiki.varak.net/tests/phpunit/includes/ |
Current File : //proc/thread-self/root/www/varak.net/wiki.varak.net/tests/phpunit/includes/LicensesTest.php |
<?php /** * @covers Licenses */ class LicensesTest extends MediaWikiTestCase { public function testLicenses() { $str = " * Free licenses: ** GFDL|Debian disagrees "; $lc = new Licenses( [ '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::class ) ); } }