You are here

public function CommerceTwigExtensionTest::testRenderContentEntity in Commerce Core 8.2

Tests rendering a content entity.

File

tests/src/Kernel/CommerceTwigExtensionTest.php, line 36

Class

CommerceTwigExtensionTest
Tests the commerce twig filters.

Namespace

Drupal\Tests\commerce\Kernel

Code

public function testRenderContentEntity() {
  $account = $this
    ->createUser();
  $theme = [
    '#theme' => 'render_entity',
    '#entity' => $account,
  ];
  $this
    ->render($theme);
  $this
    ->assertText('Member for');
}