public function PaymentReferenceTest::testQueue in Payment 8.2
@covers ::queue
File
- modules/
payment_reference/ tests/ src/ Unit/ PaymentReferenceTest.php, line 21
Class
- PaymentReferenceTest
- @coversDefaultClass \Drupal\payment_reference\PaymentReference
Namespace
Drupal\Tests\payment_reference\UnitCode
public function testQueue() {
$container = new Container();
$queue = $this
->createMock(QueueInterface::class);
$container
->set('payment_reference.queue', $queue);
\Drupal::setContainer($container);
$this
->assertSame($queue, PaymentReference::queue());
}