2019-05-22 19:26:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/** @covers ForeignDBFile */
|
2019-07-13 20:50:28 +00:00
|
|
|
class ForeignDBFileTest extends \MediaWikiUnitTestCase {
|
2019-05-22 19:26:35 +00:00
|
|
|
|
|
|
|
|
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 );
|
|
|
|
|
}
|
|
|
|
|
}
|