You are here

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

The views data definition.

Overrides ViewsSqlTest::viewsData

File

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

Class

ViewsUpgradeTestCase
Try to test the upgrade path of all conversions.

Code

function viewsData() {
  $data = parent::viewsData();
  $data['views_test']['old_field_1']['moved to'] = array(
    'views_test',
    'id',
  );
  $data['views_test']['old_field_2']['field']['moved to'] = array(
    'views_test',
    'name',
  );
  $data['views_test']['old_field_3']['filter']['moved to'] = array(
    'views_test',
    'age',
  );

  // @todo Test this scenario, too.
  $data['views_old_table_2']['old_field']['moved to'] = array(
    'views_test',
    'job',
  );
  $data['views_old_table']['moved to'] = 'views_test';
  return $data;
}