function FormAjaxSubscriberTest::setUp
Overrides UnitTestCase::setUp
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php, line 64  
Class
- FormAjaxSubscriberTest
 - @coversDefaultClass \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber[[api-linebreak]] @group EventSubscriber
 
Namespace
Drupal\Tests\Core\Form\EventSubscriberCode
protected function setUp() : void {
  parent::setUp();
  $this->httpKernel = $this->createMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
  $this->formAjaxResponseBuilder = $this->createMock('Drupal\\Core\\Form\\FormAjaxResponseBuilderInterface');
  $this->stringTranslation = $this->getStringTranslationStub();
  $this->messenger = $this->createMock(MessengerInterface::class);
  $this->subscriber = new FormAjaxSubscriber($this->formAjaxResponseBuilder, $this->stringTranslation, $this->messenger);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.