Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCartPriceRuleFreeShippingIsApplied.php
Go to the documentation of this file.
1 <?php
8 
13 {
14  const FREE_SHIPPING_PRICE = '0.00';
15 
21  protected function assert()
22  {
23  $shippingPrice = $this->checkoutCart->getTotalsBlock()->getShippingPrice();
24 
25  \PHPUnit\Framework\Assert::assertEquals(
27  self::FREE_SHIPPING_PRICE,
28  'Current shipping price: \'' . $shippingPrice
29  . '\' not equals with free shipping price: \'' . self::FREE_SHIPPING_PRICE . '\''
30  );
31  }
32 
38  public function toString()
39  {
40  return 'Free shipping is applied.';
41  }
42 }
$shippingPrice
Definition: price.phtml:12