function ViewsModuleTest::assertInstanceHandler

Ensure that a certain handler is a instance of a certain table/field.

1 call to ViewsModuleTest::assertInstanceHandler()
ViewsModuleTest::testViewsGetHandler in tests/views_module.test
Tests views_get_handler().

File

tests/views_module.test, line 238

Class

ViewsModuleTest
Tests basic functions from the Views module.

Code

protected 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));
}