function RelationTestCase::createRelationOctopus in Relation 7
Creates an Octopus (4-ary) relation.
1 call to RelationTestCase::createRelationOctopus()
- RelationTestCase::setUp in tests/
relation.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
relation.test, line 195 - Tests for Relation module.
Class
- RelationTestCase
- Relation helper class.
Code
function createRelationOctopus() {
// Nodes 1, 2, 3, 4 are related.
$this->relation_type_octopus = $this->relation_types['octopus']['relation_type'];
$this->rid_octopus = $this
->saveRelation($this->relation_type_octopus, $this->endpoints_4);
}