FancyGuy\Composer\Test\WebrootInstallerTest::testWebrootInstallPath PHP Метод

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

testWebrootInstallPath
    public function testWebrootInstallPath()
    {
        $installer = new WebrootInstaller($this->io, $this->composer);
        $package = new Package('fancyguy/webroot-package', '1.0.0', '1.0.0');
        $package->setType('webroot');
        $consumerPackage = new RootPackage('foo/bar', '1.0.0', '1.0.0');
        $this->composer->setPackage($consumerPackage);
        $consumerPackage->setExtra(array('webroot-dir' => 'content', 'webroot-package' => 'fancyguy/webroot-package'));
        $result = $installer->getInstallPath($package);
        $this->assertEquals('content', $result);
    }