FileRepo: Use Late Static Binding in File static constructors
[lhc/web/wiklou.git] / tests / phpunit / includes / filerepo / file / ForeignDBFileTest.php
1 <?php
2
3 /** @covers ForeignDBFile */
4 class ForeignDBFileTest extends \PHPUnit\Framework\TestCase {
5
6 use PHPUnit4And6Compat;
7
8 public function testShouldConstructCorrectInstanceFromTitle() {
9 $title = Title::makeTitle( NS_FILE, 'Awesome_file' );
10 $repoMock = $this->createMock( LocalRepo::class );
11
12 $file = ForeignDBFile::newFromTitle( $title, $repoMock );
13
14 $this->assertInstanceOf( ForeignDBFile::class, $file );
15 }
16 }