public function testnstallPluginMalformedConfigError()
{
$service = $this->app['eccube.service.plugin'];
$tmpdir = $this->createTempDir();
$tmpfile = $tmpdir . '/plugin.tar';
$tar = new \PharData($tmpfile);
// インストールするプラグインを作成する
$tmpname = "dummy" . sha1(mt_rand());
$config = array();
$config['code'] = $tmpname;
$config['version'] = $tmpname;
$tar->addFromString('config.yml', Yaml::dump($config));
$this->setExpectedException('\\Eccube\\Exception\\PluginException', 'config.yml name empty');
// インストールできないはず
$this->assertNull($service->install($tmpfile));
}