You are here

public function MultiversionManagerTest::testGetSupportedEntityTypes in Multiversion 8

File

tests/src/Functional/MultiversionManagerTest.php, line 72

Class

MultiversionManagerTest
Test the MultiversionManager class.

Namespace

Drupal\Tests\multiversion\Functional

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");
  }
}