You are here

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

Asserts the variation row position in cart.

Parameters

int|bool $position: The row position.

3 calls to AjaxAddCartViewsTestBase::assertVariationRowPosition()
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.

File

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

Class

AjaxAddCartViewsTestBase
Base class for ajax add cart views tests.

Namespace

Drupal\Tests\dc_ajax_add_cart_views\Functional

Code

protected function assertVariationRowPosition($position) {
  $this
    ->assertInternalType('int', $position, 'Variation not present in cart.');
}