public function PaymentMethodConfigurationListBuilderTest::setUp in Payment 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Entity/ PaymentMethodConfiguration/ PaymentMethodConfigurationListBuilderTest.php, line 71
Class
- PaymentMethodConfigurationListBuilderTest
- @coversDefaultClass \Drupal\payment\Entity\PaymentMethodConfiguration\PaymentMethodConfigurationListBuilder
Namespace
Drupal\Tests\payment\Unit\Entity\PaymentMethodConfigurationCode
public function setUp() : void {
$this->entityStorage = $this
->createMock(ConfigEntityStorageInterface::class);
$this->entityType = $this
->createMock(EntityTypeInterface::class);
$this->moduleHandler = $this
->createMock(ModuleHandlerInterface::class);
$this->paymentMethodConfigurationManager = $this
->createMock(PaymentMethodConfigurationManagerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->sut = new PaymentMethodConfigurationListBuilder($this->entityType, $this->entityStorage);
$this->sut
->setStringTranslation($this->stringTranslation);
$this->sut
->setPaymentMethodConfigurationManager($this->paymentMethodConfigurationManager);
$this->sut
->setModuleHandler($this->moduleHandler);
}