function SvgExtractorTest::setUp

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Theme/Icon/Plugin/SvgExtractorTest.php, line 48

Class

SvgExtractorTest
@coversDefaultClass \Drupal\Core\Theme\Plugin\IconExtractor\SvgExtractor

Namespace

Drupal\Tests\Core\Theme\Icon\Plugin

Code

public function setUp() : void {
    parent::setUp();
    $this->iconFinder = $this->createMock(IconFinder::class);
    $this->svgExtractorPlugin = new SvgExtractor([
        'id' => $this->pluginId,
        'config' => [
            'sources' => [
                'foo/bar/{icon_id}.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.