public function FieldTypeTest::testFieldType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block_content/src/Tests/Views/FieldTypeTest.php \Drupal\block_content\Tests\Views\FieldTypeTest::testFieldType()
File
- core/
modules/ block_content/ src/ Tests/ Views/ FieldTypeTest.php, line 26 - Contains \Drupal\block_content\Tests\Views\FieldTypeTest.
Class
- FieldTypeTest
- Tests the Drupal\block_content\Plugin\views\field\Type handler.
Namespace
Drupal\block_content\Tests\ViewsCode
public function testFieldType() {
$block_content = $this
->createBlockContent();
$expected_result[] = array(
'id' => $block_content
->id(),
'type' => $block_content
->bundle(),
);
$column_map = array(
'id' => 'id',
'type:target_id' => 'type',
);
$view = Views::getView('test_field_type');
$this
->executeView($view);
$this
->assertIdenticalResultset($view, $expected_result, $column_map, 'The correct block_content type was displayed.');
}