You are here

function ViewsUpgradeTestCase::debugField in Views (for Drupal 7) 7.3

File

tests/views_upgrade.test, line 58
Definition of ViewsUpgradeTestCase.

Class

ViewsUpgradeTestCase
Try to test the upgrade path of all conversions.

Code

function debugField($field) {
  $keys = array(
    'id',
    'table',
    'field',
    'actual_field',
    'original_field',
    'real_field',
  );
  $info = array();
  foreach ($keys as $key) {
    $info[$key] = $field->{$key};
  }
  debug($info, NULL, TRUE);
}