You are here

protected function RefreshPageElementsHelperTest::assertInstanceOfRefreshPageElementsHelper in Commerce Ajax Add to Cart 8

Asserts whether the object is an instance of RefreshPageElementsHelper.

Parameters

object $object: The object to be checked.

6 calls to RefreshPageElementsHelperTest::assertInstanceOfRefreshPageElementsHelper()
RefreshPageElementsHelperTest::testAjaxResponseCartBlock in tests/src/Kernel/RefreshPageElementsHelperTest.php
Tests ajax response when cart block is updated.
RefreshPageElementsHelperTest::testAjaxResponseFormBuildId in tests/src/Kernel/RefreshPageElementsHelperTest.php
Tests ajax response when form build id is updated.
RefreshPageElementsHelperTest::testAjaxResponseNoStatusMessagesBlock in tests/src/Kernel/RefreshPageElementsHelperTest.php
Tests ajax response when status messages block is not placed.
RefreshPageElementsHelperTest::testAjaxResponseStatusMessagesBlock in tests/src/Kernel/RefreshPageElementsHelperTest.php
Tests ajax response when status messages block is placed.
RefreshPageElementsHelperTest::testAjaxResponseUpdatePageElements in tests/src/Kernel/RefreshPageElementsHelperTest.php
Tests updatePageElements().

... See full list

File

tests/src/Kernel/RefreshPageElementsHelperTest.php, line 129

Class

RefreshPageElementsHelperTest
Tests RefreshPageElementsHelper methods.

Namespace

Drupal\Tests\dc_ajax_add_cart\Kernel

Code

protected function assertInstanceOfRefreshPageElementsHelper($object) {
  $this
    ->assertTrue($object instanceof RefreshPageElementsHelper, 'Not an instance of RefreshPageElementsHelper.');
}