diff -u b/core/tests/Drupal/Tests/Core/Entity/EntityListControllerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityListControllerTest.php --- b/core/tests/Drupal/Tests/Core/Entity/EntityListControllerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityListControllerTest.php @@ -88,7 +88,7 @@ ); $this->moduleHandler->expects($this->once()) ->method('invokeAll') - ->with('entity_operation', $this->role) + ->with('entity_operation', array($this->role)) ->will($this->returnValue($operations)); $this->moduleHandler->expects($this->once()) ->method('alter')