public function PaymentStatusesDisplayTest::setUp in Payment 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Element/ PaymentStatusesDisplayTest.php, line 42
Class
- PaymentStatusesDisplayTest
- @coversDefaultClass \Drupal\payment\Element\PaymentStatusesDisplay
Namespace
Drupal\Tests\payment\Unit\ElementCode
public function setUp() : void {
$this->dateFormatter = $this
->getMockBuilder(DateFormatter::class)
->disableOriginalConstructor()
->getMock();
$this->stringTranslation = $this
->getStringTranslationStub();
$configuration = [];
$plugin_id = $this
->randomMachineName();
$plugin_definition = [];
$this->sut = new PaymentStatusesDisplay($configuration, $plugin_id, $plugin_definition, $this->stringTranslation, $this->dateFormatter);
}