You are here

function RelationTestCase::createRelationEndPoints in Relation 7

Creates end points.

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

File

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

Class

RelationTestCase
Relation helper class.

Code

function createRelationEndPoints() {
  $this->endpoints = array(
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node1->nid,
    ),
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node4->nid,
    ),
  );
  $this->endpoints_4 = array(
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node1->nid,
    ),
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node2->nid,
    ),
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node3->nid,
    ),
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node4->nid,
    ),
  );
  $this->endpoints_entitysame = array(
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node3->nid,
    ),
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node4->nid,
    ),
  );
  $this->endpoints_entitydifferent = array(
    array(
      'entity_type' => 'user',
      'entity_id' => $this->user1->uid,
    ),
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node3->nid,
    ),
  );
  $this->endpoints_unary = array(
    array(
      'entity_type' => 'node',
      'entity_id' => $this->node5->nid,
    ),
  );
}