You are here

public function ContentHubEntityDependencyTest::testGetRelationship in Acquia Content Hub 8

Test for getRelationship() method.

@covers ::getRelationship

File

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

Class

ContentHubEntityDependencyTest
PHPUnit for the ContentHubEntityDependency class.

Namespace

Drupal\Tests\acquia_contenthub\Unit

Code

public function testGetRelationship() {
  $this->entity = $this
    ->createContentHubEntity();
  $ch_entity_dependency = new ContentHubEntityDependency($this->entity);
  $this
    ->assertEquals(ContentHubEntityDependency::RELATIONSHIP_INDEPENDENT, $ch_entity_dependency
    ->getRelationship());
}