You are here

public function MultiversionManagerTest::testGetSupportedEntityTypes in Multiversion 8.2

File

src/Tests/MultiversionManagerTest.php, line 72

Class

MultiversionManagerTest
Test the MultiversionManager class.

Namespace

Drupal\multiversion\Tests

Code

public function testGetSupportedEntityTypes() {
  foreach ($this->multiversionManager
    ->getSupportedEntityTypes() as $entity_type_id => $entity_type) {
    $label = $entity_type
      ->get('label');
    $this
      ->assertTrue($entity_type instanceof ContentEntityTypeInterface, "{$label} is an instance of ContentEntityTypeInterface");
  }
}