You are here

function RelationCtoolsTestCase::testRelationLoadDefaultRelationTypes in Relation 7

File

tests/relation.ctools.test, line 24
Tests for ctools support.

Class

RelationCtoolsTestCase
Functional test of Relation's integration with ctools.

Code

function testRelationLoadDefaultRelationTypes() {

  // endpoint instance count on relation should match relation type count.
  $relation_types = relation_get_types();
  $field_instances = field_info_instances('relation');
  $this
    ->assertEqual(count($relation_types), count($field_instances));
}