Eccube\Tests\Web\Admin\Product\CsvImportControllerTest::testCsvTemplateWithCategory PHP Method

testCsvTemplateWithCategory() public method

    public function testCsvTemplateWithCategory()
    {
        // 一旦別の変数に代入しないと, config 以下の値を書きかえることができない
        $config = $this->app['config'];
        $config['csv_export_encoding'] = 'UTF-8';
        // SJIS だと比較できないので UTF-8 に変更しておく
        $this->app['config'] = $config;
        $this->expectOutputString('カテゴリID,カテゴリ名,親カテゴリID' . "\n");
        $crawler = $this->client->request('GET', $this->app->path('admin_product_csv_template', array('type' => 'category')));
        $this->assertTrue($this->client->getResponse()->isSuccessful());
    }