You are here

public function DataLayerUnitTests::setupMockLanguage in dataLayer 7

Setup language.

2 calls to DataLayerUnitTests::setupMockLanguage()
DataLayerUnitTests::setupMockEntityTerms in tests/datalayer.unit.test
Setup Mock Entity Terms.
DataLayerUnitTests::testDataLayerDefaults in tests/datalayer.unit.test
Test DataLayer Defaults function.

File

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

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

public function setupMockLanguage($lang = 'en-us') {
  global $language;
  $language->language = $lang;
}