public function PaymentStatusTest::setUp in Payment 8.2
Same name in this branch
- 8.2 tests/src/Unit/Entity/PaymentStatusTest.php \Drupal\Tests\payment\Unit\Entity\PaymentStatusTest::setUp()
- 8.2 tests/src/Unit/Plugin/views/filter/PaymentStatusTest.php \Drupal\Tests\payment\Unit\Plugin\views\filter\PaymentStatusTest::setUp()
@covers ::setEntityTypeManager @covers ::setTypedConfig
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Entity/ PaymentStatusTest.php, line 52
Class
- PaymentStatusTest
- @coversDefaultClass \Drupal\payment\Entity\PaymentStatus
Namespace
Drupal\Tests\payment\Unit\EntityCode
public function setUp() : void {
$this->entityTypeManager = $this
->createMock(EntityTypeManagerInterface::class);
$this->entityTypeId = $this
->randomMachineName();
$this->typedConfigManager = $this
->createMock(TypedConfigManagerInterface::class);
$this->sut = new PaymentStatus([], $this->entityTypeId);
$this->sut
->setEntityTypeManager($this->entityTypeManager);
$this->sut
->setTypedConfig($this->typedConfigManager);
}