You are here

protected function RelationTestBase::createRelationSymmetric in Relation 8.2

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

Creates a Symmetric relation.

2 calls to RelationTestBase::createRelationSymmetric()
RelationAPITest::testRelationQuery in src/Tests/RelationAPITest.php
Tests all available methods in RelationQuery.
RelationTestBase::setUp in src/Tests/RelationTestBase.php
Sets up a Drupal site for running functional and integration tests.

File

src/Tests/RelationTestBase.php, line 183

Class

RelationTestBase
Provides common helper methods for Taxonomy module tests.

Namespace

Drupal\relation\Tests

Code

protected function createRelationSymmetric() {

  // Article 1 <--> Page 4
  $this->relation_type_symmetric = $this->relation_types['symmetric']['id'];
  $this->relation_id_symmetric = $this
    ->saveRelation($this->relation_type_symmetric, $this->endpoints);
}