public function testGetListWithFlat()
{
$Categories = $this->app['eccube.repository.category']->getList(null, true);
$this->expected = 11;
$this->actual = count($Categories);
$this->verify('ルートカテゴリの合計数は' . $this->expected . 'ではありません');
$this->actual = array();
foreach ($Categories as $Category) {
$this->actual[] = $Category->getName();
}
$this->expected = array('親3', '子3', '孫3', '親2', '子2-2', '子2-1', '子2-0', '孫2', '親1', '子1', '孫1');
$this->verify('取得したカテゴリ名が正しくありません');
}