Issue #2861067 by vaplas: Random fail in Drupal\aggregator\Tests\FeedAdminDisplayTest::testFeedUpdateFields

8.4.x
Nathaniel Catchpole 2017-04-17 14:52:23 +01:00
parent 6578474f74
commit 31afc0286b
1 changed files with 10 additions and 0 deletions

View File

@ -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;
}
}