1.20.x views_module.test | ViewsModuleTest::assertInstanceHandler($handler, $table, $field, $id) |
Ensure that a certain handler is a instance of a certain table/field.
File
- modules/
views/ tests/ views_module.test, line 217 - Definition of ViewsModuleTest.
Class
- ViewsModuleTest
- Tests basic functions from the Views module.
Code
function assertInstanceHandler($handler, $table, $field, $id) {
$table_data = views_fetch_data($table);
$field_data = $table_data[$field][$id];
$this->assertEqual($field_data['handler'], get_class($handler));
}