- $this->assertTrue($entity instanceof CommentTypeInterface);
- /** @var \Drupal\comment\CommentTypeInterface $entity */
- $this->assertIdentical($label, $entity->label());
- $this->assertIdentical('node', $entity->getTargetEntityTypeId());
+ $this->assertInstanceOf(CommentType::class, $entity);
+ $this->assertSame($label, $entity->label());
+ $this->assertSame('node', $entity->getTargetEntityTypeId());