function ExtractorTest::testIconExtractorBase

Test the IconExtractorBase::label and IconExtractorBase::description.

File

core/tests/Drupal/Tests/Core/Theme/Icon/Plugin/ExtractorTest.php, line 32

Class

ExtractorTest
Tests icon extractor with base and finder base plugin.

Namespace

Drupal\Tests\Core\Theme\Icon\Plugin

Code

public function testIconExtractorBase() : void {
    $extractorPlugin = new TestExtractor([], $this->pluginId, [
        'label' => 'foo',
        'description' => 'bar',
    ]);
    $this->assertSame('foo', $extractorPlugin->label());
    $this->assertSame('bar', $extractorPlugin->description());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.