You are here

public function DataLayerUnitTests::setupMockEntityController in dataLayer 7

Setup Mock Entity Controller.

1 call to DataLayerUnitTests::setupMockEntityController()
DataLayerUnitTests::setupMockEntityTerms in tests/datalayer.unit.test
Setup Mock Entity Terms.

File

tests/datalayer.unit.test, line 301
Tests the functionality of the DataLayer module.

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

public function setupMockEntityController() {
  $entity_contoller =& drupal_static('entity_get_controller');
  $entity_contoller = array(
    'taxonomy_term' => new DataLayerMockEntityController(),
  );
}