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