class MockFileFinderTest
Tests Drupal\Component\Annotation\Reflection\MockFileFinder.
Attributes
#[CoversClass(MockFileFinder::class)]
#[Group('Annotation')]
Hierarchy
- class \Drupal\Tests\Component\Annotation\MockFileFinderTest extends \PHPUnit\Framework\TestCase
Expanded class hierarchy of MockFileFinderTest
File
-
core/
tests/ Drupal/ Tests/ Component/ Annotation/ MockFileFinderTest.php, line 15
Namespace
Drupal\Tests\Component\AnnotationView source
class MockFileFinderTest extends TestCase {
/**
* @legacy-covers ::create
* @legacy-covers ::findFile
*/
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'));
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| MockFileFinderTest::testFindFile | public | function | @legacy-covers ::create @legacy-covers ::findFile |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.