Eccube\Tests\Repository\ProductRepositoryGetQueryBuilderBySearchDataTest::testPaginationEventByOrderCreated PHP Method

testPaginationEventByOrderCreated() public method

    public function testPaginationEventByOrderCreated()
    {
        $this->ProductListMax->setId(15);
        $this->ProductListMax->setName('15件');
        $this->ProductListMax->setRank(0);
        $this->ProductListOrderBy->setId(2);
        $this->ProductListOrderBy->setName('新着順');
        $this->ProductListOrderBy->setRank(0);
        $this->searchData = array('mode' => NULL, 'category_id' => NULL, 'name' => NULL, 'pageno' => '1', 'disp_number' => $this->ProductListMax, 'orderby' => $this->ProductListOrderBy);
        $this->scenario();
        $pagination = $this->app['paginator']()->paginate($this->Results, $this->searchData['pageno'], $this->searchData['disp_number']->getId());
        $this->expected = count($pagination);
        $this->actual = count($this->Results);
        $this->verify();
    }