Use memory job queue for unit tests
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 12 Sep 2016 00:23:54 +0000 (17:23 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 12 Sep 2016 00:23:54 +0000 (17:23 -0700)
Change-Id: I13586b9873bf09acd4a458a7af75a25d9b980fca

tests/phpunit/MediaWikiTestCase.php

index 50b3390..18b9dc8 100644 (file)
@@ -256,6 +256,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase {
 
                $defaultOverrides->set( 'ObjectCaches', $objectCaches );
                $defaultOverrides->set( 'MainCacheType', CACHE_NONE );
+               $defaultOverrides->set( 'JobTypeConf', [ 'default' => [ 'class' => 'JobQueueMemory' ] ] );
 
                // Use a fast hash algorithm to hash passwords.
                $defaultOverrides->set( 'PasswordDefault', 'A' );