You are here

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

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

File

tests/TestBase.inc, line 72

Class

OGMTTestBase
Base test class

Code

protected function _create_img_field($mime, $path) {
  switch (OPENGRAPH_META_DRUPAL_VERSION) {
    case 6:
      return array(
        'filemime' => $mime,
        'filepath' => $path,
      );
      break;
    default:
      return array(
        'filemime' => $mime,
        'uri' => $path,
      );
  }
}