commit b4c601b967ad5d4fcfd190b9c850bc3510079948 Author: Nedjo Rogers Date: Sun Feb 19 10:39:08 2017 -0800 test diff --git a/src/Tests/EntitiesTest.php b/src/Tests/EntitiesTest.php index 360a850..c5a6d33 100644 --- a/src/Tests/EntitiesTest.php +++ b/src/Tests/EntitiesTest.php @@ -70,6 +70,7 @@ class EntitiesTest extends FastTestBase { $this->assertRaw('group-right', 'Template found (region right)'); $this->assertRaw('
', 'Submitted by line found'); $xpath = $this->xpath('//div[@class="field field--name-node-submitted-by field--type-ds field--label-hidden field__item"]'); + // Because the user has 'access user profiles' permission, user name is rendered in a link. $this->assertText('Submitted by ' . (string) $xpath[0]->a->span . ' on', 'Submitted by line found'); // Configure teaser layout. diff --git a/src/Tests/FastTestBase.php b/src/Tests/FastTestBase.php index 5f62303..986bc3c 100644 --- a/src/Tests/FastTestBase.php +++ b/src/Tests/FastTestBase.php @@ -90,6 +90,7 @@ abstract class FastTestBase extends WebTestBase { $this->adminUser = $this->drupalCreateUser(array( 'access content', 'access in-place editing', + 'access user profiles', 'admin classes', 'admin display suite', 'admin fields',