Eccube\Tests\Service\CsvExportServiceTest::testExportHeader PHP Method

testExportHeader() public method

public testExportHeader ( )
    public function testExportHeader()
    {
        $this->app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_PRODUCT);
        $this->app['eccube.service.csv.export']->exportHeader();
        $Csv = $this->app['eccube.repository.csv']->findBy(array('CsvType' => CsvType::CSV_TYPE_PRODUCT, 'enable_flg' => Constant::ENABLED));
        $arrHeader = explode(',', file_get_contents($this->url));
        // Vfs に出力すると日本語が化けてしまうようなので, カウントのみ比較
        $this->expected = count($Csv);
        $this->actual = count($arrHeader);
        $this->verify();
    }