コード例 #1
0
ファイル: CartContext.php プロジェクト: rpg600/Sylius
 /**
  * @Then my cart taxes should be :taxTotal
  */
 public function myCartTaxesShouldBe($taxTotal)
 {
     $this->cartSummaryPage->open();
     expect($this->cartSummaryPage->getTaxTotal())->toBe($taxTotal);
 }
コード例 #2
0
ファイル: CartContextSpec.php プロジェクト: ahmadrabie/Sylius
 function it_throws_not_equal_exception_if_tax_total_is_incorrect(CartSummaryPageInterface $cartSummaryPage)
 {
     $cartSummaryPage->open()->shouldBeCalled();
     $cartSummaryPage->getTaxTotal()->willReturn('$40.00');
     $this->shouldThrow(NotEqualException::class)->during('myCartTaxesShouldBe', ['$50.00']);
 }