Пример #1
0
 /**
  * @dataProvider getNodes
  *
  * @param int $total_pages
  * @param int $current_page
  * @param int $max_navigate
  * @param string|\Closure $page_link
  * @param string $first_page_link
  * @param ArrayCollection $list
  */
 public function testGetIterator($total_pages, $current_page, $max_navigate, $page_link, $first_page_link, $list)
 {
     $this->config->expects($this->any())->method('getTotalPages')->will($this->returnValue($total_pages));
     $this->config->expects($this->any())->method('getCurrentPage')->will($this->returnValue($current_page));
     $this->config->expects($this->any())->method('getMaxNavigate')->will($this->returnValue($max_navigate));
     $this->config->expects($this->any())->method('getPageLink')->will($this->returnValue($page_link));
     $this->config->expects($this->any())->method('getFirstPageLink')->will($this->returnValue($first_page_link));
     $this->assertEquals($list, $this->view->getIterator());
 }