protected function ProcessorTest::setUp in Advanced Queue 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ProcessorTest.php, line 42
Class
- ProcessorTest
- @coversDefaultClass \Drupal\advancedqueue\Processor @group advancedqueue
Namespace
Drupal\Tests\advancedqueue\KernelCode
protected function setUp() {
parent::setUp();
$this
->installSchema('advancedqueue', [
'advancedqueue',
]);
$this->queue = Queue::create([
'id' => 'test',
'label' => 'Test queue',
'backend' => 'database',
'backend_configuration' => [
'lease_time' => 5,
],
]);
$this->queue
->save();
$this->processor = $this->container
->get('advancedqueue.processor');
}