Merge "RCFilters: Display specific error if query times out"
[lhc/web/wiklou.git] / tests / phpunit / mocks / content / DummyContentForTesting.php
index 0c69027..4392964 100644 (file)
@@ -2,8 +2,10 @@
 
 class DummyContentForTesting extends AbstractContent {
 
+       const MODEL_ID = "testing";
+
        public function __construct( $data ) {
-               parent::__construct( "testing" );
+               parent::__construct( self::MODEL_ID );
 
                $this->data = $data;
        }
@@ -82,7 +84,7 @@ class DummyContentForTesting extends AbstractContent {
         * Returns true if this content is countable as a "real" wiki page, provided
         * that it's also in a countable location (e.g. a current revision in the main namespace).
         *
-        * @param bool $hasLinks If it is known whether this content contains links,
+        * @param bool|null $hasLinks If it is known whether this content contains links,
         * provide this information here, to avoid redundant parsing to find out.
         * @return bool
         */