You are here

function RelationTestCase::createRelationSymmetric in Relation 7

Creates a Symmetric relation.

2 calls to RelationTestCase::createRelationSymmetric()
RelationAPITestCase::testRelationQuery in tests/relation.test
Tests all available methods in RelationQuery. Creates some nodes, add some relations and checks if they are related.
RelationTestCase::setUp in tests/relation.test
Sets up a Drupal site for running functional and integration tests.

File

tests/relation.test, line 151
Tests for Relation module.

Class

RelationTestCase
Relation helper class.

Code

function createRelationSymmetric() {

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