diff --git a/core/modules/views/src/Tests/Plugin/views/field/EntityOperationsUnitTest.php b/core/modules/views/src/Tests/Plugin/views/field/EntityOperationsUnitTest.php index 5c5a77d..81ec65a 100644 --- a/core/modules/views/src/Tests/Plugin/views/field/EntityOperationsUnitTest.php +++ b/core/modules/views/src/Tests/Plugin/views/field/EntityOperationsUnitTest.php @@ -49,9 +49,9 @@ public function setUp() { $this->entityManager = $this->getMock('\Drupal\Core\Entity\EntityManagerInterface'); $configuration = array(); - $plugin_id = $this->randomName(); + $plugin_id = $this->randomMachineName(); $plugin_definition = array( - 'title' => $this->randomName(), + 'title' => $this->randomMachineName(), ); $this->plugin = new EntityOperations($configuration, $plugin_id, $plugin_definition, $this->entityManager); $view = $this->getMockBuilder('\Drupal\views\ViewExecutable') @@ -84,7 +84,7 @@ public function testDefineOptions() { * @covers ::render */ public function testRenderWithDestination() { - $entity_type_id = $this->randomName(); + $entity_type_id = $this->randomMachineName(); $entity = $this->getMockBuilder('\Drupal\user\Entity\Role') ->disableOriginalConstructor() ->getMock(); @@ -94,7 +94,7 @@ public function testRenderWithDestination() { $operations = array( 'foo' => array( - 'title' => $this->randomName(), + 'title' => $this->randomMachineName(), ), ); $list_builder = $this->getMock('\Drupal\Core\Entity\EntityListBuilderInterface'); @@ -126,7 +126,7 @@ public function testRenderWithDestination() { * @covers ::render */ public function testRenderWithoutDestination() { - $entity_type_id = $this->randomName(); + $entity_type_id = $this->randomMachineName(); $entity = $this->getMockBuilder('\Drupal\user\Entity\Role') ->disableOriginalConstructor() ->getMock(); @@ -136,7 +136,7 @@ public function testRenderWithoutDestination() { $operations = array( 'foo' => array( - 'title' => $this->randomName(), + 'title' => $this->randomMachineName(), ), ); $list_builder = $this->getMock('\Drupal\Core\Entity\EntityListBuilderInterface');