public function testVendorPath()
{
$installer = new Installer($this->io, $this->composer);
$package = new Package('penyaskito/my_module', '1.0.0', '1.0.0');
$package->setType('drupal-module');
$consumerPackage = new RootPackage('drupal/drupal', '1.0.0', '1.0.0');
$this->composer->setPackage($consumerPackage);
$consumerPackage->setExtra(array('installer-paths' => array('modules/custom/{$name}/' => array('vendor:penyaskito'))));
$result = $installer->getInstallPath($package);
$this->assertEquals('modules/custom/my_module/', $result);
}