1 views_upgrade.test | ViewsUpgradeTestCase::viewsData() |
The views data definition.
Overrides ViewsSqlTest::viewsData
File
- core/
modules/ views/ tests/ views_upgrade.test, line 15 - 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;
}