ShopwareCli\Tests\PluginCreateTest::testLegacyFileProvider PHP Method

testLegacyFileProvider() public method

Test each file provider with legacy files.
    public function testLegacyFileProvider()
    {
        $legacyOutputDirectoryProvider = $this->getMockBuilder(LegacyOutputDirectoryProvider::class)->disableOriginalConstructor()->getMock();
        $legacyOutputDirectoryProvider->method('getPath')->willReturn('');
        foreach ($this->legacyFileProvider as $name => $provider) {
            $config = $this->getConfigObject();
            $config->isLegacyPlugin = true;
            $configName = $provider['config'];
            $config->{$configName} = true;
            $config->namespace = 'Frontend';
            $this->providerTest($config, $provider, $this->legacyFileProvider, $legacyOutputDirectoryProvider);
        }
    }