function ExtensionDiscoveryTest::testDeprecatedIterator
Tests deprecated iterator.
@covers \Drupal\Core\Extension\Discovery\RecursiveExtensionFilterIterator @group legacy
File
-
core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionDiscoveryTest.php, line 215
Class
- ExtensionDiscoveryTest
- Tests discovery of extensions.
Namespace
Drupal\Tests\Core\ExtensionCode
public function testDeprecatedIterator() : void {
$this->expectDeprecation('The Drupal\\Core\\Extension\\Discovery\\RecursiveExtensionFilterIterator is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use \\Drupal\\Core\\Extension\\Discovery\\RecursiveExtensionFilterCallback instead. See https://www.drupal.org/node/3343023');
$recursive_extension_filter_iterator = new RecursiveExtensionFilterIterator(new \RecursiveDirectoryIterator('.'));
$this->assertInstanceOf(RecursiveExtensionFilterIterator::class, $recursive_extension_filter_iterator);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.