You are here

public function EntityRenderHandlerTest::testOnCreateCdfConfigEntity in Acquia Lift Connector 8.4

@covers ::onCreateCdf

Throws

\Exception

File

modules/acquia_lift_publisher/tests/src/Kernel/EventSubscriber/Cdf/EntityRenderHandlerTest.php, line 134

Class

EntityRenderHandlerTest
Class EntityRenderHandlerTest.

Namespace

Drupal\Tests\acquia_lift_publisher\Kernel\EventSubscriber\Cdf

Code

public function testOnCreateCdfConfigEntity() {
  $config_entity = $this
    ->createContentType([
    'id' => 'test_content_type',
    'name' => 'Test content type',
  ]);
  $this
    ->enableViewModeExportFor($config_entity);
  $event = $this
    ->dispatchWith($config_entity, []);
  $this
    ->assertCdfNotHasRenderedEntity($event
    ->getCdfList());
}