function IconPackExtractorFormTest::setUp

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Theme/Icon/IconPackExtractorFormTest.php \Drupal\Tests\Core\Theme\Icon\IconPackExtractorFormTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Theme/Icon/IconPackExtractorFormTest.php, line 45

Class

IconPackExtractorFormTest
Tests Drupal\Core\Theme\Icon\IconPackExtractorForm.

Namespace

Drupal\Tests\Core\Theme\Icon

Code

protected function setUp() : void {
  parent::setUp();
  $this->plugin = new TestPluginWithForm();
  $this->formState = $this->prophesize(FormStateInterface::class);
  $this->iconPackForm = new IconPackExtractorForm();
  $this->iconPackForm
    ->setPlugin($this->plugin);
}

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