You are here

public function EntityPrintOrderRendererTest::testEntityPrintHandlerSet in Commerce Core 8.2

Tests that the entity_print handler is set for commerce_order.

File

modules/order/tests/src/Kernel/EntityPrintOrderRendererTest.php, line 34

Class

EntityPrintOrderRendererTest
Tests the entity_print integration.

Namespace

Drupal\Tests\commerce_order\Kernel

Code

public function testEntityPrintHandlerSet() {
  $definition = $this->entityTypeManager
    ->getDefinition('commerce_order');
  $this
    ->assertTrue($definition
    ->hasHandlerClass('entity_print'));
  $this
    ->assertEquals(OrderRenderer::class, $definition
    ->getHandlerClass('entity_print'));
}