You are here

public function NodeReferenceFormTest::testReferenceableNodeTypesOne in References 7.2

Test referencing a limited list of node types.

File

node_reference/node_reference.test, line 106
Initial node_reference tests.

Class

NodeReferenceFormTest
Unit tests for referenceability of node types in entity forms.

Code

public function testReferenceableNodeTypesOne() {
  $allowed = array_slice(node_type_get_names(), 0, 1, TRUE);
  $this
    ->runReferenceableNodeTest($allowed, t('Limited referencing'));
}