You are here

public function CurrencyImportFormTest::setUp in Currency 8.3

Same name in this branch
  1. 8.3 tests/src/Unit/Controller/CurrencyImportFormTest.php \Drupal\Tests\currency\Unit\Controller\CurrencyImportFormTest::setUp()
  2. 8.3 tests/src/Unit/Form/CurrencyImportFormTest.php \Drupal\Tests\currency\Unit\Form\CurrencyImportFormTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/Controller/CurrencyImportFormTest.php, line 60

Class

CurrencyImportFormTest
@coversDefaultClass \Drupal\currency\Form\CurrencyImportForm

Namespace

Drupal\Tests\currency\Unit\Controller

Code

public function setUp() : void {
  $this->configImporter = $this
    ->createMock(ConfigImporterInterface::class);
  $this->formHelper = $this
    ->createMock(FormHelperInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->messenger = $this
    ->createMock(MessengerInterface::class);
  $this->sut = new CurrencyImportForm($this->stringTranslation, $this->configImporter, $this->formHelper);
  $this->sut
    ->setMessenger($this->messenger);
}