Пример #1
0
 public function testGetSummaryCount()
 {
     $summaryQty = 1;
     $this->cartMock->expects($this->any())->method('getSummaryQty')->will($this->returnValue($summaryQty));
     $this->assertEquals($summaryQty, $this->helper->getSummaryCount());
 }
Пример #2
0
 /**
  * Count items in cart
  *
  * @return int
  */
 protected function _getItemCount()
 {
     $count = $this->getSummaryQty();
     return $count ? $count : $this->_cartHelper->getSummaryCount();
 }