Eccube\Tests\Service\PluginServiceTest::testInstallPluginEmptyError PHP Method

testInstallPluginEmptyError() public method

必須ファイルがないプラグインがインストール出来ないこと
    public function testInstallPluginEmptyError()
    {
        $this->setExpectedException('\\Eccube\\Exception\\PluginException', 'config.yml not found or syntax error');
        $service = $this->app['eccube.service.plugin'];
        // インストールするプラグインを作成する
        $tmpname = "dummy" . sha1(mt_rand());
        $tmpdir = $this->createTempDir();
        $tmpfile = $tmpdir . '/plugin.tar';
        $tar = new \PharData($tmpfile);
        $tar->addFromString('dummy', 'dummy');
        // インストールできるか
        $service->install($tmpfile);
    }