Also move the 'unit' test into integration, given it tests code using globals. Change-Id: Ie039cae9b5d2870c18a6deefec9a73de522dd847
19 lines
585 B
PHP
19 lines
585 B
PHP
<?php
|
|
|
|
/**
|
|
* @group small
|
|
*/
|
|
class DifferenceEngineSlotDiffRendererIntegrationTest extends \MediaWikiIntegrationTestCase {
|
|
|
|
/**
|
|
* @covers DifferenceEngineSlotDiffRenderer::getExtraCacheKeys
|
|
*/
|
|
public function testGetExtraCacheKeys_noExternalDiffEngineConfigured() {
|
|
$this->setMwGlobals( [ 'wgExternalDiffEngine' => null ] );
|
|
|
|
$differenceEngine = new CustomDifferenceEngine();
|
|
$slotDiffRenderer = new DifferenceEngineSlotDiffRenderer( $differenceEngine );
|
|
$extraCacheKeys = $slotDiffRenderer->getExtraCacheKeys();
|
|
$this->assertSame( [ 'foo' ], $extraCacheKeys );
|
|
}
|
|
}
|