Eccube\Tests\Repository\CategoryRepositoryTest::testDownWithParent PHP Method

testDownWithParent() public method

public testDownWithParent ( )
    public function testDownWithParent()
    {
        $Category = $this->app['eccube.repository.category']->findOneBy(array('name' => '子2-1'));
        $result = $this->app['eccube.repository.category']->down($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-2', '子2-0', '子2-1');
        $this->verify('取得したカテゴリ名が正しくありません');
    }