public function LiftLinkTest::testLinkInToolbar in Acquia Lift Connector 8.3
File
- src/
Tests/ LiftLinkTest.php, line 41
Class
- LiftLinkTest
- Test Acquia Lift Toolbar Link.
Namespace
Drupal\acquia_lift\TestsCode
public function testLinkInToolbar() {
$permissions = [
'access toolbar',
'access acquia lift links',
];
// User to set up acquia_lift.
$linkUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($linkUser);
// Set valid settings
$this
->setValidSettings();
// Check if Acquia Lift Link is available on the node that we created
$node = $this
->drupalCreateNode();
// Assert that the Acquia Lift link ID is present in the HTML.
// This also verifies if the specific render cache is cleared.
$this
->drupalGet($node
->toUrl());
$this
->assertRaw('id="openLiftLink"');
}