/** * {@inheritdoc} * * @covers ::setEntityManager * @covers ::setTypedConfig * @covers ::setUserStorage */ public function setUp() { $this->bundle = $this->randomMachineName(); $this->entityManager = $this->getMock(EntityManagerInterface::class); $this->entityTypeId = $this->randomMachineName(); $this->typedConfigManager = $this->getMock(TypedConfigManagerInterface::class); $this->userStorage = $this->getMock(UserStorageInterface::class); $this->sut = new PaymentMethodConfiguration(['pluginId' => $this->bundle], $this->entityTypeId); $this->sut->setEntityManager($this->entityManager); $this->sut->setTypedConfig($this->typedConfigManager); $this->sut->setUserStorage($this->userStorage); }