function IconFinderTest::setUp

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php, line 47

Class

IconFinderTest
@coversDefaultClass \Drupal\Core\Theme\Icon\IconFinder

Namespace

Drupal\Tests\Core\Theme\Icon

Code

protected function setUp() : void {
    parent::setUp();
    $this->fileUrlGenerator = $this->getMockBuilder('Drupal\\Core\\File\\FileUrlGeneratorInterface')
        ->disableOriginalConstructor()
        ->getMock();
    $this->logger = $this->createMock(LoggerInterface::class);
    $this->iconFinder = new IconFinder($this->fileUrlGenerator, $this->logger, DRUPAL_ROOT);
}

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