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