public function _testSimpleFieldRender() {
$view = views_get_view('test_view_fieldapi');
$this
->prepareView($view);
$this
->executeView($view);
// Tests that the rendered fields match the actual value of the fields.
for ($i = 0; $i < 3; $i++) {
for ($key = 0; $key < 2; $key++) {
$field = $this->fields[$key];
$rendered_field = $view->style_plugin
->getField($i, $field['field_name']);
$expected_field = $this->nodes[$i]->{$field['field_name']}[Language::LANGCODE_NOT_SPECIFIED][0]['value'];
$this
->assertEqual($rendered_field, $expected_field);
}
}
}