public function ModuleTest::assertInstanceHandler in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Kernel/ModuleTest.php \Drupal\Tests\views\Kernel\ModuleTest::assertInstanceHandler()
- 10 core/modules/views/tests/src/Kernel/ModuleTest.php \Drupal\Tests\views\Kernel\ModuleTest::assertInstanceHandler()
Ensure that a certain handler is a instance of a certain table/field.
1 call to ModuleTest::assertInstanceHandler()
- ModuleTest::testViewsGetHandler in core/
modules/ views/ tests/ src/ Kernel/ ModuleTest.php - Tests the ViewsHandlerManager::getHandler() method.
File
- core/
modules/ views/ tests/ src/ Kernel/ ModuleTest.php, line 339
Class
- ModuleTest
- Tests basic functions from the Views module.
Namespace
Drupal\Tests\views\KernelCode
public function assertInstanceHandler($handler, $table, $field, $id) {
$table_data = $this->container
->get('views.views_data')
->get($table);
$field_data = $table_data[$field][$id];
$this
->assertEqual($field_data['id'], $handler
->getPluginId());
}