protected function DraftyTitleTestCase::nodeLoad in Drafty 7
Loads a term using the given language as active language.
1 call to DraftyTitleTestCase::nodeLoad()
- DraftyTitleTestCase::testProgrammaticTranslationWorkflow in tests/
DraftyTitleTestCase.test - Tests title module interaction with draft translation creation.
File
- tests/
DraftyTitleTestCase.test, line 192
Class
- DraftyTitleTestCase
- Tests for legacy field replacement.
Code
protected function nodeLoad($nid, $langcode = NULL) {
drupal_static_reset();
title_active_language($langcode);
return node_load($nid, NULL, TRUE);
}