You are here

protected function RelationTestBase::createRelationUnary in Relation 8.2

Same name and namespace in other branches
  1. 8 src/Tests/RelationTestBase.php \Drupal\relation\Tests\RelationTestBase::createRelationUnary()

Creates an Unary relation.

1 call to RelationTestBase::createRelationUnary()
RelationTestBase::setUp in src/Tests/RelationTestBase.php
Sets up a Drupal site for running functional and integration tests.

File

src/Tests/RelationTestBase.php, line 239

Class

RelationTestBase
Provides common helper methods for Taxonomy module tests.

Namespace

Drupal\relation\Tests

Code

protected function createRelationUnary() {

  // Page 5 <--> Page 5
  $this->relation_type_unary = $this->relation_types['unary']['id'];
  $this->relation_id_unary = $this
    ->saveRelation($this->relation_type_unary, $this->endpoints_unary);
}