You are here

public function ContentHubEntityDependencyTest::testGetRawEntity in Acquia Content Hub 8

Test getRawEntity method.

@covers ::getRawEntity

File

tests/src/Unit/ContentHubEntityDependencyTest.php, line 174

Class

ContentHubEntityDependencyTest
PHPUnit for the ContentHubEntityDependency class.

Namespace

Drupal\Tests\acquia_contenthub\Unit

Code

public function testGetRawEntity() {
  $this->entity = $this
    ->createContentHubEntity();
  $ch_entity_dependency = new ContentHubEntityDependency($this->entity);
  $this
    ->assertEquals($this->entity, $ch_entity_dependency
    ->getRawEntity());
}