public function FieldTest::testRender in Views (for Drupal 7) 8.3
Tests that the render function is called.
File
- lib/
Drupal/ views/ Tests/ Handler/ FieldTest.php, line 49 - Definition of Drupal\views\Tests\Handler\FieldTest.
Class
- FieldTest
- Tests the generic field handler.
Namespace
Drupal\views\Tests\HandlerCode
public function testRender() {
$view = views_get_view('test_field_tokens');
$this
->executeView($view);
$random_text = $this
->randomName();
$view->field['job']
->setTestValue($random_text);
$this
->assertEqual($view->field['job']
->theme($view->result[0]), $random_text, 'Make sure the render method rendered the manual set value.');
}