Commit 3359738e authored by alexpott's avatar alexpott

Issue #2398259 by Berdir: Random test fail in AccessRoleTest

parent 62ba78dc
......@@ -70,11 +70,13 @@ function testAccessRole() {
'anonymous' => 'anonymous',
);
$view->save();
// Ensure that the list of roles is sorted correctly, if the generated role
// ID comes before 'anonymous', see https://www.drupal.org/node/2398259.
$roles = ['user.role.anonymous', 'user.role.' . $this->normalRole];
sort($roles);
$expected = [
'config' => [
'user.role.anonymous',
'user.role.' . $this->normalRole,
],
'config' => $roles,
'module' => ['user'],
];
$this->assertIdentical($expected, $view->calculateDependencies());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment