Index: trunk/extensions/Reviews/Reviews.hooks.php |
— | — | @@ -15,6 +15,7 @@ |
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Schema update to set up the needed database tables. |
| 19 | + * @see https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates |
19 | 20 | * |
20 | 21 | * @since 0.1 |
21 | 22 | * |
— | — | @@ -22,7 +23,7 @@ |
23 | 24 | * |
24 | 25 | * @return true |
25 | 26 | */ |
26 | | - public static function onSchemaUpdate( /* DatabaseUpdater */ $updater = null ) { |
| 27 | + public static function onSchemaUpdate( DatabaseUpdater $updater ) { |
27 | 28 | $updater->addExtensionUpdate( array( |
28 | 29 | 'addTable', |
29 | 30 | 'reviews', |
— | — | @@ -35,6 +36,7 @@ |
36 | 37 | |
37 | 38 | /** |
38 | 39 | * Hook to add PHPUnit test cases. |
| 40 | + * @see https://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList |
39 | 41 | * |
40 | 42 | * @since 0.1 |
41 | 43 | * |
— | — | @@ -45,8 +47,6 @@ |
46 | 48 | public static function registerUnitTests( array &$files ) { |
47 | 49 | $testDir = dirname( __FILE__ ) . '/test/'; |
48 | 50 | |
49 | | - //$files[] = $testDir . 'ContestValidationTests.php'; |
50 | | - |
51 | 51 | return true; |
52 | 52 | } |
53 | 53 | |