Update ObjectFactory and ConvertibleTimestamp
[lhc/web/wiklou.git] / tests / phpunit / includes / block / BlockManagerTest.php
index ec6eea9..39a5534 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use MediaWiki\Block\BlockManager;
+use MediaWiki\Block\DatabaseBlock;
 
 /**
  * @group Blocking
@@ -28,6 +29,7 @@ class BlockManagerTest extends MediaWikiTestCase {
                        'wgEnableDnsBlacklist' => true,
                        'wgProxyList' => [],
                        'wgProxyWhitelist' => [],
+                       'wgSecretKey' => false,
                        'wgSoftBlockRanges' => [],
                ];
        }
@@ -51,7 +53,7 @@ class BlockManagerTest extends MediaWikiTestCase {
                        'wgCookieSetOnIpBlock' => true,
                ] );
 
-               $block = new Block( array_merge( [
+               $block = new DatabaseBlock( array_merge( [
                        'address' => $options[ 'target' ] ?: $this->user,
                        'by' => $this->sysopId,
                ], $options[ 'blockOptions' ] ) );