You are here

protected function EntityRenderHandlerTest::assertCdfListHasMetadata in Acquia Lift Connector 8.4

Asserts that each cdf o a given list has metadata being set.

Parameters

array $cdf_list: The cdf list.

1 call to EntityRenderHandlerTest::assertCdfListHasMetadata()
EntityRenderHandlerTest::testOnCreateCdfMetadataSetCorrectly in modules/acquia_lift_publisher/tests/src/Kernel/EventSubscriber/Cdf/EntityRenderHandlerTest.php
@covers ::onCreateCdf

File

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

Class

EntityRenderHandlerTest
Class EntityRenderHandlerTest.

Namespace

Drupal\Tests\acquia_lift_publisher\Kernel\EventSubscriber\Cdf

Code

protected function assertCdfListHasMetadata(array $cdf_list) {
  foreach ($cdf_list as $cdf) {
    $this
      ->assertNotEmpty($cdf
      ->getMetadata(), 'Metadata is not set');
  }
}