function IconFinderTest::testFindFilesWarning
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php \Drupal\Tests\Core\Theme\Icon\IconFinderTest::testFindFilesWarning()
Test the IconFinder::findFiles method with warning with invalid path.
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ IconFinderTest.php, line 684
Class
Namespace
Drupal\Tests\Core\Theme\IconCode
public function testFindFilesWarning() : void {
$method = new \ReflectionMethod(IconFinder::class, 'findFiles');
$this->logger
->expects($this->once())
->method('warning')
->with('Invalid icon path in source: @source');
$method->invoke($this->iconFinder, 'invalid_path', '*');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.