public function ContentHubEntityDependencyTest::testGetUuidAndType in Acquia Content Hub 8
Test for getUuid() and getEntityType() method.
@covers ::getUuid @covers ::getEntityType
File
- tests/src/ Unit/ ContentHubEntityDependencyTest.php, line 70 
Class
- ContentHubEntityDependencyTest
- PHPUnit for the ContentHubEntityDependency class.
Namespace
Drupal\Tests\acquia_contenthub\UnitCode
public function testGetUuidAndType() {
  $this->entity = $this
    ->createContentHubEntity();
  $ch_entity_dependency = new ContentHubEntityDependency($this->entity);
  $this
    ->assertEquals($this->entity
    ->getUuid(), $ch_entity_dependency
    ->getUuid());
  $this
    ->assertEquals('node', $ch_entity_dependency
    ->getEntityType());
}