diff --git a/core/modules/views/src/Tests/Handler/FieldWebTest.php b/core/modules/views/src/Tests/Handler/FieldWebTest.php index 4f1387f..92800fb 100644 --- a/core/modules/views/src/Tests/Handler/FieldWebTest.php +++ b/core/modules/views/src/Tests/Handler/FieldWebTest.php @@ -327,7 +327,7 @@ public function testFieldClasses() { $id_field->options['element_default_classes'] = FALSE; // Setup some kind of label by default. - $id_field->options['label'] = $this->randomName(); + $id_field->options['label'] = $this->randomMachineName(); $output = $view->preview(); $output = drupal_render($output); $this->assertFalse($this->xpathContent($output, '//div[contains(@class, :class)]', array(':class' => 'field-content'))); diff --git a/core/modules/views_ui/lib/Drupal/views_ui/Tests/StyleTableTest.php b/core/modules/views_ui/lib/Drupal/views_ui/Tests/StyleTableTest.php index 32208e4..f7a5161 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/Tests/StyleTableTest.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/Tests/StyleTableTest.php @@ -28,12 +28,12 @@ public static function getInfo() { public function testWizard() { // Create a new view and check that the first field has a label. $view = array(); - $view['label'] = $this->randomName(16); - $view['id'] = strtolower($this->randomName(16)); + $view['label'] = $this->randomMachineName(16); + $view['id'] = strtolower($this->randomMachineName(16)); $view['show[wizard_key]'] = 'node'; $view['page[create]'] = TRUE; $view['page[style][style_plugin]'] = 'table'; - $view['page[title]'] = $this->randomName(16); + $view['page[title]'] = $this->randomMachineName(16); $view['page[path]'] = $view['id']; $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit')); diff --git a/core/modules/views_ui/src/Tests/FieldUITest.php b/core/modules/views_ui/src/Tests/FieldUITest.php index 9172e75..615b1e5 100644 --- a/core/modules/views_ui/src/Tests/FieldUITest.php +++ b/core/modules/views_ui/src/Tests/FieldUITest.php @@ -64,13 +64,13 @@ public function testFieldLabel() { // Create a view with unformatted style and make sure the fields have no // labels by default. $view = array(); - $view['label'] = $this->randomName(16); - $view['id'] = strtolower($this->randomName(16)); - $view['description'] = $this->randomName(16); + $view['label'] = $this->randomMachineName(16); + $view['id'] = strtolower($this->randomMachineName(16)); + $view['description'] = $this->randomMachineName(16); $view['show[wizard_key]'] = 'node'; $view['page[create]'] = TRUE; $view['page[style][style_plugin]'] = 'default'; - $view['page[title]'] = $this->randomName(16); + $view['page[title]'] = $this->randomMachineName(16); $view['page[path]'] = $view['id']; $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));