You are here

protected function AjaxAddCartViewsTestBase::assertVariationRowCartAjax in Commerce Ajax Add to Cart 8

Asserts presence of the variation row on cart page.

Parameters

\Behat\Mink\Element\NodeElement|null $element: The table row element to check.

6 calls to AjaxAddCartViewsTestBase::assertVariationRowCartAjax()
AjaxAddCartViewsEditQuantityTest::testAjaxUpdateCartButton in modules/dc_ajax_add_cart_views/tests/src/FunctionalJavascript/AjaxAddCartViewsEditQuantityTest.php
Tests whether the update cart button is indeed ajaxified.
AjaxAddCartViewsEditQuantityTest::testOrderTotal in modules/dc_ajax_add_cart_views/tests/src/FunctionalJavascript/AjaxAddCartViewsEditQuantityTest.php
Tests whether order total is correct on ajax quantity update.
AjaxAddCartViewsEditQuantityTest::testUpdateCartButton in modules/dc_ajax_add_cart_views/tests/src/FunctionalJavascript/AjaxAddCartViewsEditQuantityTest.php
Tests edit quantity views field.
AjaxAddCartViewsRemoveButtonTest::testAjaxRemoveButton in modules/dc_ajax_add_cart_views/tests/src/FunctionalJavascript/AjaxAddCartViewsRemoveButtonTest.php
Tests whether the remove button views field is indeed ajaxified.
AjaxAddCartViewsRemoveButtonTest::testOrderTotal in modules/dc_ajax_add_cart_views/tests/src/FunctionalJavascript/AjaxAddCartViewsRemoveButtonTest.php
Tests whether order total is correct on ajax removing product from cart.

... See full list

File

modules/dc_ajax_add_cart_views/tests/src/Functional/AjaxAddCartViewsTestBase.php, line 83

Class

AjaxAddCartViewsTestBase
Base class for ajax add cart views tests.

Namespace

Drupal\Tests\dc_ajax_add_cart_views\Functional

Code

protected function assertVariationRowCartAjax($element) {
  $this
    ->assertNotNull($element, 'Variation not found on ajax cart.');
}