public function testExport() { $this->expectOutputRegex('/2-0/', '2-0 という文字列が含まれる CSV が出力されるか'); $this->client->request('GET', $this->app->url('admin_product_category_export')); $this->assertTrue($this->client->getResponse()->isSuccessful()); }