You are here

public function CreateNewRevisionTest::testGetEntityTypeManager in Acquia Content Hub 8.2

Tests getEntityTypeManager method.

@covers ::getEntityTypeManager

File

tests/src/Kernel/EventSubscriber/PreEntitySave/CreateNewRevisionTest.php, line 70

Class

CreateNewRevisionTest
Test that new revisions are handled correctly in PreEntitySave event.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\PreEntitySave

Code

public function testGetEntityTypeManager() {
  $entity_type_manager = $this->createNewRevision
    ->getEntityTypeManager();
  $this
    ->assertInstanceOf(EntityTypeManagerInterface::class, $entity_type_manager);
}