Commit 071fa21e authored by webchick's avatar webchick

Issue #2004408 follow-up by tim.plunkett: Fix tests to account for previous fix.

parent 9ab3d605
......@@ -69,10 +69,13 @@ public function testBuildRowEntityList() {
)
),
)));
$module_handler = $this->getMockBuilder('Drupal\Core\Extension\ModuleHandler')
->disableOriginalConstructor()
->getMock();
// Setup a view list controller with a mocked buildOperations method,
// because t() is called on there.
$view_list_controller = $this->getMock('Drupal\views_ui\ViewListController', array('buildOperations'), array('view', $storage_controller, $entity_info, $display_manager));
$view_list_controller = $this->getMock('Drupal\views_ui\ViewListController', array('buildOperations'), array('view', $storage_controller, $entity_info, $display_manager, $module_handler));
$view_list_controller->expects($this->any())
->method('buildOperations')
->will($this->returnValue(array()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment