getShippingTotal() public method

public getShippingTotal ( ) : string
return string
Beispiel #1
0
 /**
  * @Given /^there should be no shipping fee$/
  */
 public function thereShouldBeNoShippingFee()
 {
     $this->summaryPage->open();
     try {
         $this->summaryPage->getShippingTotal();
     } catch (ElementNotFoundException $exception) {
         return;
     }
     throw new \DomainException('Get shipping total should throw an exception!');
 }
Beispiel #2
0
 /**
  * @Then shipping total value should be :shippingTotal
  * @Then my cart shipping total should be :shippingTotal
  * @Then my cart shipping should be for free
  */
 public function myCartShippingFeeShouldBe($shippingTotal = '€0.00')
 {
     $this->summaryPage->open();
     Assert::same($this->summaryPage->getShippingTotal(), $shippingTotal, 'Shipping total value should be %2$s, but it is %s.');
 }