function DatabaseQueueWebTest::setUp in Payment 8.2
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ DatabaseQueueWebTest.php, line 52
Class
Namespace
Drupal\Tests\payment\KernelCode
function setUp() : void {
parent::setUp();
$this
->installEntitySchema('payment');
$this
->installSchema('payment', [
'payment_queue',
]);
$this->database = \Drupal::database();
$this->paymentMethodManager = \Drupal::service('plugin.manager.payment.method');
$this->paymentStatusManager = \Drupal::service('plugin.manager.payment.status');
$queue_id = $this
->randomMachineName();
$this->queue = new DatabaseQueue($queue_id, $this->database, \Drupal::service('payment.event_dispatcher'), $this->paymentStatusManager);
}