Eccube\Tests\Repository\CategoryRepositoryTest::testGetList PHP Метод

testGetList() публичный Метод

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