summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-04-17 13:52:23 (GMT)
committerNathaniel Catchpole2017-04-17 13:52:23 (GMT)
commit31afc0286bdbe1a1ef9bd922855dea455cd7f944 (patch)
treeffcac6544faf661e1d0c042f0dae9cb571485f14
parent6578474f74db67a87dd63eff38629041a5f46ce2 (diff)
Issue #2861067 by vaplas: Random fail in Drupal\aggregator\Tests\FeedAdminDisplayTest::testFeedUpdateFields
-rw-r--r--core/modules/aggregator/src/Tests/FeedAdminDisplayTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/modules/aggregator/src/Tests/FeedAdminDisplayTest.php b/core/modules/aggregator/src/Tests/FeedAdminDisplayTest.php
index 0dbb872..46366b4 100644
--- a/core/modules/aggregator/src/Tests/FeedAdminDisplayTest.php
+++ b/core/modules/aggregator/src/Tests/FeedAdminDisplayTest.php
@@ -60,4 +60,14 @@ class FeedAdminDisplayTest extends AggregatorTestBase {
$this->assertNoText('left', 'The feed is not scheduled. It does not show a timeframe "x x left" for next update.');
}
+ /**
+ * {@inheritdoc}
+ */
+ public function randomMachineName($length = 8) {
+ $value = parent::randomMachineName($length);
+ // See expected values in testFeedUpdateFields().
+ $value = str_replace(['never', 'imminently', 'ago', 'left'], 'x', $value);
+ return $value;
+ }
+
}