public function AmountFormattingFormTest::setUp in Currency 8.3
Same name in this branch
- 8.3 tests/src/Unit/Controller/AmountFormattingFormTest.php \Drupal\Tests\currency\Unit\Controller\AmountFormattingFormTest::setUp()
- 8.3 tests/src/Unit/Form/AmountFormattingFormTest.php \Drupal\Tests\currency\Unit\Form\AmountFormattingFormTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Controller/ AmountFormattingFormTest.php, line 61
Class
- AmountFormattingFormTest
- @coversDefaultClass \Drupal\currency\Form\AmountFormattingForm
Namespace
Drupal\Tests\currency\Unit\ControllerCode
public function setUp() : void {
$this->configFactory = $this
->createMock(ConfigFactoryInterface::class);
$this->currencyAmountFormatterManager = $this
->createMock(AmountFormatterManagerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->messenger = $this
->createMock(MessengerInterface::class);
$this->controller = new AmountFormattingForm($this->configFactory, $this->stringTranslation, $this->currencyAmountFormatterManager);
$this->controller
->setMessenger($this->messenger);
}