You are here

function RelationTestCase::createRelationUnary in Relation 7

Creates an Unary relation.

1 call to RelationTestCase::createRelationUnary()
RelationTestCase::setUp in tests/relation.test
Sets up a Drupal site for running functional and integration tests.

File

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

Class

RelationTestCase
Relation helper class.

Code

function createRelationUnary() {

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