http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73954
Revision: 73954
Author: platonides
Date: 2010-09-29 16:20:41 +0000 (Wed, 29 Sep 2010)
Log Message:
-----------
Fixed dummy test that only checks that the License object can be created.
Modified Paths:
--------------
trunk/phase3/maintenance/tests/phpunit/includes/LicensesTest.php
Modified: trunk/phase3/maintenance/tests/phpunit/includes/LicensesTest.php
===================================================================
--- trunk/phase3/maintenance/tests/phpunit/includes/LicensesTest.php
2010-09-29 16:05:46 UTC (rev 73953)
+++ trunk/phase3/maintenance/tests/phpunit/includes/LicensesTest.php
2010-09-29 16:20:41 UTC (rev 73954)
@@ -1,17 +1,14 @@
<?php
-/**
- * @group Broken
- */
class LicensesTest extends PHPUnit_Framework_TestCase {
function testLicenses() {
$str = "
* Free licenses:
-** GFLD|Debian disagrees
+** GFDL|Debian disagrees
";
- $lc = new Licenses( $str );
+ $lc = new Licenses( array( 'licenses' => $str ) );
$this->assertTrue( is_a( $lc, 'Licenses' ), 'Correct class' );
}
-}
\ No newline at end of file
+}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs