That mostly enables testing global functions Bug: T87781 Change-Id: Ib42c56a67926ebcdba53f4c6c54a5bff98cb77a3
14 lines
393 B
PHP
14 lines
393 B
PHP
<?php
|
|
|
|
/** @covers ForeignDBFile */
|
|
class ForeignDBFileTest extends \MediaWikiUnitTestCase {
|
|
|
|
public function testShouldConstructCorrectInstanceFromTitle() {
|
|
$title = Title::makeTitle( NS_FILE, 'Awesome_file' );
|
|
$repoMock = $this->createMock( LocalRepo::class );
|
|
|
|
$file = ForeignDBFile::newFromTitle( $title, $repoMock );
|
|
|
|
$this->assertInstanceOf( ForeignDBFile::class, $file );
|
|
}
|
|
}
|