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