function SvgSpriteExtractorTest::setUp

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Theme/Icon/Plugin/SvgSpriteExtractorTest.php, line 45

Class

SvgSpriteExtractorTest
@coversDefaultClass \Drupal\Core\Theme\Plugin\IconExtractor\SvgSpriteExtractor

Namespace

Drupal\Tests\Core\Theme\Icon\Plugin

Code

public function setUp() : void {
    parent::setUp();
    $this->iconFinder = $this->createMock(IconFinder::class);
    $this->svgSpriteExtractorPlugin = new SvgSpriteExtractor([
        '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.