Debian Codegraph @

tests/phpunit/unit/includes/filerepo/file/ForeignDBFileTest.php

raw symbols SCIP
1 <?php
2
3 use MediaWiki\Title\Title;
4
5 /** @covers \ForeignDBFile */
6 class ForeignDBFileTest extends MediaWikiUnitTestCase {
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 }