Ejemplo n.º 1
0
 /**
  * @Then my cart shipping fee should be :shippingTotal
  */
 public function myCartShippingFeeShouldBe($shippingTotal)
 {
     $this->cartSummaryPage->open();
     expect($this->cartSummaryPage->getShippingTotal())->toBe($shippingTotal);
 }
Ejemplo n.º 2
0
 function it_throws_exception_if_shipping_total_is_present_on_the_page_but_should_not(CartSummaryPageInterface $cartSummaryPage)
 {
     $cartSummaryPage->open()->shouldBeCalled();
     $cartSummaryPage->getShippingTotal()->willReturn('$10.00');
     $this->shouldThrow(new FailureException('Expected to get exception, none got.'))->during('thereShouldBeNoShippingFee', []);
 }