function MockFileFinderTest::testFindFile
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php \Drupal\Tests\Component\Annotation\MockFileFinderTest::testFindFile()
- 10 core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php \Drupal\Tests\Component\Annotation\MockFileFinderTest::testFindFile()
- 11.x core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php \Drupal\Tests\Component\Annotation\MockFileFinderTest::testFindFile()
@covers ::create @covers ::findFile
File
-
core/
tests/ Drupal/ Tests/ Component/ Annotation/ MockFileFinderTest.php, line 18
Class
- MockFileFinderTest
- @coversDefaultClass \Drupal\Component\Annotation\Reflection\MockFileFinder @group Annotation
Namespace
Drupal\Tests\Component\AnnotationCode
public function testFindFile() {
$tmp = MockFileFinder::create('testfilename.txt');
$this->assertEquals('testfilename.txt', $tmp->findFile('n/a'));
$this->assertEquals('testfilename.txt', $tmp->findFile('SomeClass'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.