3 namespace Drupal\Tests\block_content\Functional\Views;
5 use Drupal\views\Views;
8 * Tests the Drupal\block_content\Plugin\views\field\Type handler.
10 * @group block_content
12 class FieldTypeTest extends BlockContentTestBase {
15 * Views used by this test.
19 public static $testViews = ['test_field_type'];
21 public function testFieldType() {
22 $block_content = $this->createBlockContent();
23 $expected_result[] = [
24 'id' => $block_content->id(),
25 'type' => $block_content->bundle(),
29 'type:target_id' => 'type',
32 $view = Views::getView('test_field_type');
33 $this->executeView($view);
34 $this->assertIdenticalResultset($view, $expected_result, $column_map, 'The correct block_content type was displayed.');