Beispiel #1
0
 /**
  * @param bool $isWeeeEnabled
  * @param bool $showWeeeDetails
  * @param bool $hasWeeeAmount
  * @param bool $expectedValue
  * @dataProvider testDisplayPriceWithWeeeDetailsDataProvider
  */
 public function testDisplayPriceWithWeeeDetails($isWeeeEnabled, $showWeeeDetails, $hasWeeeAmount, $expectedValue)
 {
     $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($isWeeeEnabled));
     $this->weeeHelper->expects($this->any())->method('typeOfDisplay')->with([WeeeDisplayConfig::DISPLAY_INCL_DESCR, WeeeDisplayConfig::DISPLAY_EXCL_DESCR_INCL], self::ZONE, self::STORE_ID)->will($this->returnValue($showWeeeDetails));
     $this->item->expects($this->any())->method('getWeeeTaxAppliedAmount')->will($this->returnValue($hasWeeeAmount));
     $this->assertEquals($expectedValue, $this->renderer->displayPriceWithWeeeDetails());
 }
Beispiel #2
0
 /**
  * Whether to display weee details together with price
  *
  * @return bool
  */
 public function displayPriceWithWeeeDetails()
 {
     return $this->itemPriceRenderer->displayPriceWithWeeeDetails();
 }