You are here

protected function OGMTTestBase::_set_node_body in Open Graph meta tags 6

Same name and namespace in other branches
  1. 7.2 tests/TestBase.inc \OGMTTestBase::_set_node_body()
  2. 7 tests/TestBase.inc \OGMTTestBase::_set_node_body()
2 calls to OGMTTestBase::_set_node_body()
OGMTBasicTest::testExtractImagesFromNode in tests/Basic.test
OGMTTestBase::_build_test_node in tests/TestBase.inc

File

tests/TestBase.inc, line 61

Class

OGMTTestBase
Base test class

Code

protected function _set_node_body(&$node, $body) {
  switch (OPENGRAPH_META_DRUPAL_VERSION) {
    case 6:
      $node->body = $body;
      break;
    default:
      $node->body = array(
        LANGUAGE_NONE => array(
          '0' => array(
            'value' => $body,
          ),
        ),
      );
  }
}