3 /** @covers ForeignDBFile */
4 class ForeignDBFileTest
extends \MediaWikiUnitTestCase
{
6 public function testShouldConstructCorrectInstanceFromTitle() {
7 $title = Title
::makeTitle( NS_FILE
, 'Awesome_file' );
8 $repoMock = $this->createMock( LocalRepo
::class );
10 $file = ForeignDBFile
::newFromTitle( $title, $repoMock );
12 $this->assertInstanceOf( ForeignDBFile
::class, $file );