/** * @Then my cart taxes should be :taxTotal */ public function myCartTaxesShouldBe($taxTotal) { $this->cartSummaryPage->open(); expect($this->cartSummaryPage->getTaxTotal())->toBe($taxTotal); }
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']); }
function it_checks_if_cart_has_given_tax_total(CartSummaryPage $cartSummaryPage) { $cartSummaryPage->open()->shouldBeCalled(); $cartSummaryPage->getTaxTotal()->willReturn('$50.00'); $this->myCartTaxesShouldBe('$50.00'); }