protected function FormAjaxResponseBuilderTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 42 - Contains \Drupal\Tests\Core\Form\FormAjaxResponseBuilderTest.
Class
- FormAjaxResponseBuilderTest
- @coversDefaultClass \Drupal\Core\Form\FormAjaxResponseBuilder @group Form
Namespace
Drupal\Tests\Core\FormCode
protected function setUp() {
parent::setUp();
$this->renderer = $this
->getMock('Drupal\\Core\\Render\\MainContent\\MainContentRendererInterface');
$this->routeMatch = $this
->getMock('Drupal\\Core\\Routing\\RouteMatchInterface');
$this->formAjaxResponseBuilder = new FormAjaxResponseBuilder($this->renderer, $this->routeMatch);
}