function FormAjaxResponseBuilderTest::setUp
Overrides UnitTestCase::setUp
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Form/ FormAjaxResponseBuilderTest.php, line 40  
Class
- FormAjaxResponseBuilderTest
 - @coversDefaultClass \Drupal\Core\Form\FormAjaxResponseBuilder[[api-linebreak]] @group Form
 
Namespace
Drupal\Tests\Core\FormCode
protected function setUp() : void {
  parent::setUp();
  $this->renderer = $this->createMock('Drupal\\Core\\Render\\MainContent\\MainContentRendererInterface');
  $this->routeMatch = $this->createMock('Drupal\\Core\\Routing\\RouteMatchInterface');
  $this->formAjaxResponseBuilder = new FormAjaxResponseBuilder($this->renderer, $this->routeMatch);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.