You are here

public function InstallerTest::testCustomInstallerName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php \Composer\Installers\Test\InstallerTest::testCustomInstallerName()

testCustomInstallerName

File

vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php, line 344

Class

InstallerTest

Namespace

Composer\Installers\Test

Code

public function testCustomInstallerName() {
  $installer = new Installer($this->io, $this->composer);
  $package = new Package('shama/cakephp-ftp-plugin', '1.0.0', '1.0.0');
  $package
    ->setType('cakephp-plugin');
  $package
    ->setExtra(array(
    'installer-name' => 'FTP',
  ));
  $result = $installer
    ->getInstallPath($package);
  $this
    ->assertEquals('Plugin/FTP/', $result);
}