summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-05-13 18:43:16 (GMT)
committerAlex Pott2018-05-13 18:43:16 (GMT)
commitdf75450932de09ad1deddd7e86065c9e2de188fe (patch)
tree4e2a230fd924d0eaf7dc10e7bd4eac906cb94c9d
parent89a7f66bc87a0bb8a6f0d4db0d296100034c0d48 (diff)
Issue #2972531 by vaplas, alexpott: Random fail in TipPluginTextTest
-rw-r--r--core/modules/tour/tests/src/Unit/Plugin/tour/tip/TipPluginTextTest.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/modules/tour/tests/src/Unit/Plugin/tour/tip/TipPluginTextTest.php b/core/modules/tour/tests/src/Unit/Plugin/tour/tip/TipPluginTextTest.php
index 29ea50e..65a6d51 100644
--- a/core/modules/tour/tests/src/Unit/Plugin/tour/tip/TipPluginTextTest.php
+++ b/core/modules/tour/tests/src/Unit/Plugin/tour/tip/TipPluginTextTest.php
@@ -15,10 +15,13 @@ class TipPluginTextTest extends UnitTestCase {
* Tests that getAriaId returns unique id per plugin instance.
*
* @see \Drupal\tour\Plugin\tour\tip\TipPluginText::getAriaId()
+ * @runTestsInSeparateProcesses
+ * This test calls \Drupal\Component\Utility\Html::getUniqueId() which uses a
+ * static list. Run this test in a separate process to prevent side effects.
*/
public function testGetAriaId() {
- $id_instance_one = $this->getRandomGenerator()->word(4, TRUE);
- $id_instance_two = $this->getRandomGenerator()->word(4, TRUE);
+ $id_instance_one = 'one';
+ $id_instance_two = 'two';
$config_instance_one = [
'id' => $id_instance_one,
];