Exemplo n.º 1
0
 /**
  * @Then my cart taxes should be :taxTotal
  */
 public function myCartTaxesShouldBe($taxTotal)
 {
     $this->cartSummaryPage->open();
     expect($this->cartSummaryPage->getTaxTotal())->toBe($taxTotal);
 }
Exemplo n.º 2
0
 function it_throws_not_equal_exception_if_tax_total_is_incorrect(CartSummaryPage $cartSummaryPage)
 {
     $cartSummaryPage->open()->shouldBeCalled();
     $cartSummaryPage->getTaxTotal()->willReturn('$40.00');
     $this->shouldThrow(NotEqualException::class)->during('myCartTaxesShouldBe', ['$50.00']);
 }
Exemplo n.º 3
0
 function it_checks_if_cart_has_given_tax_total(CartSummaryPage $cartSummaryPage)
 {
     $cartSummaryPage->open()->shouldBeCalled();
     $cartSummaryPage->getTaxTotal()->willReturn('$50.00');
     $this->myCartTaxesShouldBe('$50.00');
 }