$this->fieldTypePluginManager =
$this->
createMock('Drupal\Core\Field\FieldTypePluginManagerInterface'
);
$this->fieldTypePluginManager->
expects($this->
any()) ->
method('getDefaultStorageSettings'
) ->
willReturn([]);
$this->fieldTypePluginManager->
expects($this->
any()) ->
method('getDefaultFieldSettings'
) ->
willReturn([]);
$this->languageManager =
$this->
createMock('Drupal\Core\Language\LanguageManagerInterface'
);
$this->renderer =
$this->
createMock('Drupal\Core\Render\RendererInterface'
);
$this->
setupExecutableAndView();
$this->
setupViewsData();
$this->display =
$this->
getMockBuilder('Drupal\views\Plugin\views\display\DisplayPluginBase'
) ->
disableOriginalConstructor() ->
getMock();
$this->container =
new ContainerBuilder();
$this->container->
set('plugin.manager.field.field_type',
$this->fieldTypePluginManager
);
\Drupal::
setContainer($this->container
);
} /**
* @covers ::__construct
*/