function TranslationTestCase::emptyNode

7.x translation.test TranslationTestCase::emptyNode($langcode)

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

File

drupal-7.x/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);
}