You are here

public function PaymentLineItemsDisplayTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Element/PaymentLineItemsDisplayTest.php, line 47

Class

PaymentLineItemsDisplayTest
@coversDefaultClass \Drupal\payment\Element\PaymentLineItemsDisplay

Namespace

Drupal\Tests\payment\Unit\Element

Code

public function setUp() : void {
  $this->currencyStorage = $this
    ->createMock(EntityStorageInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $configuration = [];
  $plugin_id = $this
    ->randomMachineName();
  $plugin_definition = [];
  $this->sut = new PaymentLineItemsDisplay($configuration, $plugin_id, $plugin_definition, $this->stringTranslation, $this->currencyStorage);
}