function PathExtractorTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ Plugin/ PathExtractorTest.php, line 44
Class
- PathExtractorTest
- @coversDefaultClass \Drupal\Core\Theme\Plugin\IconExtractor\PathExtractor
Namespace
Drupal\Tests\Core\Theme\Icon\PluginCode
public function setUp() : void {
parent::setUp();
$this->iconFinder = $this->createMock(IconFinder::class);
$this->pathExtractorPlugin = new PathExtractor([
'id' => $this->pluginId,
'config' => [
'sources' => [
'foo/bar/baz.svg',
],
],
'template' => '_foo_',
'relative_path' => 'modules/my_module',
], $this->pluginId, [], $this->iconFinder);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.