function AjaxResponseTest::setUp

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php \Drupal\Tests\Core\Ajax\AjaxResponseTest::setUp()
  2. 10 core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php \Drupal\Tests\Core\Ajax\AjaxResponseTest::setUp()
  3. 11.x core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php \Drupal\Tests\Core\Ajax\AjaxResponseTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php, line 28

Class

AjaxResponseTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Ajax%21AjaxResponse.php/class/AjaxResponse/9" title="JSON response object for AJAX requests." class="local">\Drupal\Core\Ajax\AjaxResponse</a> @group Ajax

Namespace

Drupal\Tests\Core\Ajax

Code

protected function setUp() : void {
    $this->ajaxResponse = new AjaxResponse();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.