Index: trunk/extensions/Maps/Maps.php |
— | — | @@ -74,6 +74,8 @@ |
75 | 75 | $wgExtensionFunctions[] = 'efMapsSetup'; |
76 | 76 | |
77 | 77 | $wgHooks['AdminLinks'][] = 'efMapsAddToAdminLinks'; |
| 78 | + |
| 79 | + $wgHooks['UnitTestsList'][] = 'efMapsUnitTests'; |
78 | 80 | } |
79 | 81 | |
80 | 82 | /** |
— | — | @@ -162,4 +164,16 @@ |
163 | 165 | $smw_docu_row->addItem( AlItem::newFromExternalLink( 'http://www.mediawiki.org/wiki/Extension:Maps', $maps_docu_label ) ); |
164 | 166 | |
165 | 167 | return true; |
| 168 | +} |
| 169 | + |
| 170 | +/** |
| 171 | + * Hook to add PHPUnit test cases. |
| 172 | + * |
| 173 | + * @since 0.6.5 |
| 174 | + * |
| 175 | + * @param array $files |
| 176 | + */ |
| 177 | +function efMapsUnitTests( array &$files ) { |
| 178 | + $testDir = dirname( __FILE__ ) . '/test/'; |
| 179 | + $files[] = $testDir . 'MapsCoordinateParserTest.php'; |
166 | 180 | } |
\ No newline at end of file |