function ViewsModuleTest::assertInstanceHandler

3.x views_module.test ViewsModuleTest::assertInstanceHandler($handler, $table, $field, $id)

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

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

File

tests/views_module.test, line 202
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));
}