Tests the views data generation.
public function testViewsData() {
$field_name = $this->field['field_name'];
$table_name = _field_sql_storage_tablename($this->field);
$data = $this->container
->get('views.views_data')
->get($table_name);
// Test that the expected data array is returned.
$expected = array(
'',
'_value',
'_format',
);
$this
->assertEqual(count($data), count($expected), 'The expected amount of array keys were found.');
foreach ($expected as $suffix) {
$this
->assertTrue(isset($data[$field_name . $suffix]));
}
$this
->assertTrue(empty($data['table']['join']), 'The field is not joined to the non existent contact message base table.');
}