public function TargetTest::testFinder in Drupal 7 to 8/9 Module Upgrader 8
@depends testGetFinder
File
- tests/
src/ Unit/ TargetTest.php, line 60
Class
- TargetTest
- @group DMU
Namespace
Drupal\Tests\drupalmoduleupgrader\UnitCode
public function testFinder() {
$expected = $this->target
->getFinder()
->exclude('menu_example')
->name('*.module')
->name('*.install')
->name('*.inc')
->name('*.test')
->name('*.php');
$this
->assertEquals(array_keys(iterator_to_array($expected)), array_keys(iterator_to_array($this->target
->getFinder())));
}