public function testFieldXss() {
$view = views_get_view('test_view');
$view
->setDisplay();
$view->displayHandlers['default']
->overrideOption('fields', array(
'name' => array(
'id' => 'name',
'table' => 'views_test_data',
'field' => 'name',
),
));
$this
->executeView($view);
$counter = 0;
foreach ($this
->dataHelper() as $input => $expected_result) {
$view->result[$counter]->views_test_data_name = $input;
$this
->assertEqual($view->field['name']
->advanced_render($view->result[$counter]), $expected_result);
$counter++;
}
}