- public function testConvertNonRevisionableEntityType() {
- $entity_test = EntityTest::create([
- 'name' => 'test',
- ]);
-
- $entity_test->save();
-
- /** @var \Symfony\Component\Routing\RouterInterface $router */
- $router = \Drupal::service('router.no_access_checks');
- $result = $router->match('/entity_test/' . $entity_test->id());
-
- $this->assertInstanceOf(EntityTest::class, $result['entity_test']);
- $this->assertEquals($entity_test->getRevisionId(), $result['entity_test']->getRevisionId());
- }
-
- /**
- * @covers ::convert
- */
- public function testConvertWithRevisionableEntityType() {
- $this->installConfig(['content_moderation']);
- $node_type = NodeType::create([