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

8.0.x
webchick 2013-06-16 23:32:45 -05:00
parent 9ab3d605ba
commit 071fa21e2b
1 changed files with 4 additions and 1 deletions

View File

@ -69,10 +69,13 @@ class ViewListControllerTest extends UnitTestCase {
)
),
)));
$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()));