public function CurrencyLocaleImportFormTest::setUp in Currency 8.3
Same name in this branch
- 8.3 tests/src/Unit/Controller/CurrencyLocaleImportFormTest.php \Drupal\Tests\currency\Unit\Controller\CurrencyLocaleImportFormTest::setUp()
- 8.3 tests/src/Unit/Form/CurrencyLocaleImportFormTest.php \Drupal\Tests\currency\Unit\Form\CurrencyLocaleImportFormTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Controller/ CurrencyLocaleImportFormTest.php, line 61
Class
- CurrencyLocaleImportFormTest
- @coversDefaultClass \Drupal\currency\Form\CurrencyLocaleImportForm
Namespace
Drupal\Tests\currency\Unit\ControllerCode
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 CurrencyLocaleImportForm($this->stringTranslation, $this->configImporter, $this->formHelper);
$this->sut
->setMessenger($this->messenger);
}