Skip to content
Snippets Groups Projects
Commit 071fa21e authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 9ab3d605
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment