diff --git a/bundle/Tests/LegacyBundles/LegacyExtensionsLocatorTest.php b/bundle/Tests/LegacyBundles/LegacyExtensionsLocatorTest.php index d212a116..db1b6c2c 100644 --- a/bundle/Tests/LegacyBundles/LegacyExtensionsLocatorTest.php +++ b/bundle/Tests/LegacyBundles/LegacyExtensionsLocatorTest.php @@ -32,6 +32,7 @@ public function testGetExtensionDirectories() [ vfsStream::url('eZ/TestBundle/ezpublish_legacy/extension1'), vfsStream::url('eZ/TestBundle/ezpublish_legacy/extension2'), + vfsStream::url('eZ/TestBundle/ezpublish_legacy/extension3'), ], $locator->getExtensionDirectories(vfsStream::url('eZ/TestBundle/')) ); @@ -57,7 +58,7 @@ public function testGetExtensionsNames() $bundle->expects($this->once()) ->method('getLegacyExtensionsNames') - ->willReturn(['extension3']); + ->willReturn(['extension4']); $locator = new LegacyExtensionsLocator($this->vfsRoot); @@ -66,6 +67,7 @@ public function testGetExtensionsNames() 'extension1', 'extension2', 'extension3', + 'extension4', ], $locator->getExtensionNames($bundle) ); @@ -78,7 +80,8 @@ protected function initVfs() 'TestBundle' => [ 'ezpublish_legacy' => [ 'extension1' => ['extension.xml' => ''], - 'extension2' => ['extension.xml' => ''], + 'extension2' => ['extension.xml' => '', 'ezinfo.php' => ''], + 'extension3' => ['ezinfo.php' => ''], 'not_extension' => [], ], 'Resources' => ['config' => []],