public function testGetLegacyPathIfNotExecutedFromShopwareRoot()
{
$expectedPath = getcwd() . '/' . self::PLUGIN_NAME . '/';
$shopwareRootDetectorStub = $this->getMock(ShopwareRootDetector::class);
$shopwareRootDetectorStub->method('isRoot')->willReturn(false);
$legacyOutputDirectoryProvider = new LegacyOutputDirectoryProvider($shopwareRootDetectorStub, self::PLUGIN_NAME, LegacyOutputDirectoryProvider::FRONTEND_NAMESPACE);
$path = $legacyOutputDirectoryProvider->getPath();
$this->assertEquals($expectedPath, $path);
}