You are here

public function ViewsModuleTest::viewsData in Views (for Drupal 7) 7.3

The views data definition.

Overrides ViewsSqlTest::viewsData

1 call to ViewsModuleTest::viewsData()
ViewsModuleTest::testviews_get_handler in tests/views_module.test
Tests the views_get_handler method.

File

tests/views_module.test, line 29
Definition of ViewsModuleTest.

Class

ViewsModuleTest
Tests basic functions from the Views module.

Code

public function viewsData() {
  $data = parent::viewsData();
  $data['views_test_previous'] = array();
  $data['views_test_previous']['id']['field']['moved to'] = array(
    'views_test',
    'id',
  );
  $data['views_test_previous']['id']['filter']['moved to'] = array(
    'views_test',
    'id',
  );
  $data['views_test']['age_previous']['field']['moved to'] = array(
    'views_test',
    'age',
  );
  $data['views_test']['age_previous']['sort']['moved to'] = array(
    'views_test',
    'age',
  );
  $data['views_test_previous']['name_previous']['field']['moved to'] = array(
    'views_test',
    'name',
  );
  $data['views_test_previous']['name_previous']['argument']['moved to'] = array(
    'views_test',
    'name',
  );
  return $data;
}