protected function RefreshPageElementsHelperTest::assertAjaxResponse in Commerce Ajax Add to Cart 8
Asserts whether response is an ajax response.
Parameters
object $response: The response to be checked.
6 calls to RefreshPageElementsHelperTest::assertAjaxResponse()
- 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().
File
- tests/
src/ Kernel/ RefreshPageElementsHelperTest.php, line 119
Class
- RefreshPageElementsHelperTest
- Tests RefreshPageElementsHelper methods.
Namespace
Drupal\Tests\dc_ajax_add_cart\KernelCode
protected function assertAjaxResponse($response) {
$this
->assertTrue($response instanceof AjaxResponse, 'Ajax response is not returned.');
}