You are here

public function CommerceTwigExtensionTest::testRenderConfigEntity in Commerce Core 8.2

Tests trying to render a config entity.

File

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

Class

CommerceTwigExtensionTest
Tests the commerce twig filters.

Namespace

Drupal\Tests\commerce\Kernel

Code

public function testRenderConfigEntity() {
  $theme = [
    '#theme' => 'render_entity',
    '#entity' => Currency::load('USD'),
  ];
  $this
    ->expectException('InvalidArgumentException');
  $this
    ->render($theme);
}