function FormAjaxResponseBuilderTest::setUp

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

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php, line 50

Class

FormAjaxResponseBuilderTest
Tests Drupal\Core\Form\FormAjaxResponseBuilder.

Namespace

Drupal\Tests\Core\Form

Code

protected function setUp() : void {
  parent::setUp();
  $this->renderer = $this->createMock('Drupal\\Core\\Render\\MainContent\\MainContentRendererInterface');
  $this->routeMatch = $this->createMock('Drupal\\Core\\Routing\\RouteMatchInterface');
  $this->callableResolver = $this->createStub(CallableResolver::class);
  $this->formAjaxResponseBuilder = new FormAjaxResponseBuilder($this->renderer, $this->routeMatch, $this->callableResolver);
}

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