'embed',
$values['display'
]['embed'
],
$embed_display],
]);
$container =
new ContainerBuilder();
$user =
$this->
createMock('Drupal\Core\Session\AccountInterface'
);
$request_stack =
new RequestStack();
$request_stack->
push(new Request());
$views_data =
$this->
getMockBuilder('Drupal\views\ViewsData'
) ->
disableOriginalConstructor() ->
getMock();
$route_provider =
$this->
createMock('Drupal\Core\Routing\RouteProviderInterface'
);
$executable_factory =
new ViewExecutableFactory($user,
$request_stack,
$views_data,
$route_provider);
$container->
set('views.executable',
$executable_factory);
$container->
set('plugin.manager.views.display',
$display_manager);
\Drupal::
setContainer($container);
// Setup a view list builder with a mocked buildOperations method,
// because t() is called on there.
$entity_type =
$this->
createMock('Drupal\Core\Entity\EntityTypeInterface'
);
$view_list_builder =
new TestViewListBuilder($entity_type,
$storage,
$display_manager);
$view_list_builder->
setStringTranslation($this->
getStringTranslationStub());
// Create new view with test values.