23 lines
443 B
PHP
23 lines
443 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MediaWiki\Tests\Unit\Settings\Source;
|
||
|
|
|
||
|
|
use MediaWiki\Settings\Source\ArraySource;
|
||
|
|
use PHPUnit\Framework\TestCase;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @covers \MediaWiki\Settings\Source\ArraySource
|
||
|
|
*/
|
||
|
|
class ArraySourceTest extends TestCase {
|
||
|
|
public function testLoad() {
|
||
|
|
$source = new ArraySource(
|
||
|
|
[ 'config' => [ 'MySettings' => 'BlaBla' ] ]
|
||
|
|
);
|
||
|
|
|
||
|
|
$this->assertSame(
|
||
|
|
[ 'config' => [ 'MySettings' => 'BlaBla' ] ],
|
||
|
|
$source->load()
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|