Merge "Add delete link to Special:Listfiles"
[lhc/web/wiklou.git] / tests / phpunit / includes / LicensesTest.php
index e1daff7..63b2c39 100644 (file)
@@ -1,8 +1,11 @@
 <?php
 
-class LicensesTest extends PHPUnit_Framework_TestCase {
+/**
+ * @covers Licenses
+ */
+class LicensesTest extends MediaWikiTestCase {
 
-       function testLicenses() {
+       public function testLicenses() {
                $str = "
 * Free licenses:
 ** GFDL|Debian disagrees
@@ -14,8 +17,8 @@ class LicensesTest extends PHPUnit_Framework_TestCase {
                        'section' => 'description',
                        'id' => 'wpLicense',
                        'label' => 'A label text', # Note can't test label-message because $wgOut is not defined
-                       'name' => 'AnotherName', 
-                       'licenses' => $str,             
+                       'name' => 'AnotherName',
+                       'licenses' => $str,
                ) );
                $this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );
        }