ShopwareCli\tests\PluginCreator\OutputDirectoryProvider\CurrentOutputDirectoryProviderTest::testGetCurrentPath PHP Метод

testGetCurrentPath() публичный Метод

public testGetCurrentPath ( )
    public function testGetCurrentPath()
    {
        $expectedPath = getcwd() . '/custom/plugins/' . self::PLUGIN_NAME . '/';
        $shopwareRootDetectorStub = $this->getMock(ShopwareRootDetector::class);
        $shopwareRootDetectorStub->method('isRoot')->willReturn(true);
        $currentOutputDirectoryProvider = new CurrentOutputDirectoryProvider($shopwareRootDetectorStub, self::PLUGIN_NAME);
        $path = $currentOutputDirectoryProvider->getPath();
        $this->assertEquals($expectedPath, $path);
    }