/**
  * Define result returned when count products in a category
  *
  * @param integer $resultCount
  */
 protected function defineCategoryCountResult($resultCount)
 {
     $productManager->expects($this->any())->method('getProductsCountInCategory')->will($this->returnValue($resultCount));
     $this->categoryManager->expects($this->any())->method('getEntityRepository')->will($this->returnValue($repository));
 }