protected function PaymentUnitTest::setUp in Payment 8.2
{@inheritdoc
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ PaymentUnitTest.php, line 53
Class
- PaymentUnitTest
- \Drupal\payment\Entity\Payment unit test.
Namespace
Drupal\Tests\payment\KernelCode
protected function setUp() : void {
parent::setUp();
$this->bundle = 'payment_unavailable';
$this->lineItemManager = Payment::lineItemManager();
$this->statusManager = Payment::statusManager();
$this->payment = \Drupal\payment\Entity\Payment::create(array(
'bundle' => $this->bundle,
));
}