Get ~100% test coverage for ApiEditPage.php and fix a couple of bugs
[lhc/web/wiklou.git] / tests / phpunit / mocks / content / DummyContentHandlerForTesting.php
index d712254..b71577c 100644 (file)
@@ -2,8 +2,8 @@
 
 class DummyContentHandlerForTesting extends ContentHandler {
 
-       public function __construct( $dataModel ) {
-               parent::__construct( $dataModel, [ "testing" ] );
+       public function __construct( $dataModel, $formats = [ DummyContentForTesting::MODEL_ID ] ) {
+               parent::__construct( $dataModel, $formats );
        }
 
        /**
@@ -34,6 +34,7 @@ class DummyContentHandlerForTesting extends ContentHandler {
 
        /**
         * Creates an empty Content object of the type supported by this ContentHandler.
+        * @return DummyContentForTesting
         */
        public function makeEmptyContent() {
                return new DummyContentForTesting( '' );