function MockFileFinderTest::testFindFile
@covers ::create
@covers ::findFile
File
-
core/
tests/ Drupal/ Tests/ Component/ Annotation/ MockFileFinderTest.php, line 20
Class
- MockFileFinderTest
- @coversDefaultClass \Drupal\Component\Annotation\Reflection\MockFileFinder[[api-linebreak]] @group Annotation
Namespace
Drupal\Tests\Component\AnnotationCode
public function testFindFile() : void {
$tmp = MockFileFinder::create('test_filename.txt');
$this->assertEquals('test_filename.txt', $tmp->findFile('n/a'));
$this->assertEquals('test_filename.txt', $tmp->findFile('SomeClass'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.