You are here

function TranslationTestCase::emptyNode in Drupal 7

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 modules/translation/translation.test
Tests that the language switcher block alterations work as intended.

File

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,
  );
}