You are here

function ViewsModuleTest::assertInstanceHandler in Views (for Drupal 7) 7.3

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