public function testUpWithParent()
{
$Category = $this->app['eccube.repository.category']->findOneBy(array('name' => '子2-1'));
$result = $this->app['eccube.repository.category']->up($Category);
$this->assertTrue($result);
$Parent = $this->app['eccube.repository.category']->findOneBy(array('name' => '親2'));
$Categories = $this->app['eccube.repository.category']->getList($Parent);
$this->actual = array();
foreach ($Categories as $Category) {
$this->actual[] = $Category->getName();
}
$this->expected = array('子2-1', '子2-2', '子2-0');
$this->verify('取得したカテゴリ名が正しくありません');
}