function TranslationTestCase::emptyNode

Returns an empty node data structure.

Parameters

$langcode: The language code.

Return value

An empty node data structure.

1 call to TranslationTestCase::emptyNode()
TranslationTestCase::testLanguageSwitcherBlockIntegration in drupal/modules/translation/translation.test
Tests that the language switcher block alterations work as intended.

File

drupal/modules/translation/translation.test, line 274
Tests for the Translation module.

Class

TranslationTestCase
Functional tests for the Translation module.

Code

function emptyNode($langcode) {
  return (object) array(
    'nid' => NULL,
    'language' => $langcode,
  );
}