public function LiftLinkTest::testLinkNotInToolbarInAdminPages in Acquia Lift Connector 8.3
File
- src/
Tests/ LiftLinkTest.php, line 129
Class
- LiftLinkTest
- Test Acquia Lift Toolbar Link.
Namespace
Drupal\acquia_lift\TestsCode
public function testLinkNotInToolbarInAdminPages() {
$permissions = [
'access toolbar',
'access acquia lift links',
'access administration pages',
];
// User to set up acquia_lift.
$linkUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($linkUser);
// Check if Acquia Lift Link is available on the node that we created
$this
->drupalGet('/admin');
// Assert that the Acquia Lift link ID is not present in the HTML.
$this
->assertNoRaw('id="openLiftLink"');
// Set valid settings
$this
->setValidSettings();
$this
->drupalGet('/admin');
// Assert that the Acquia Lift link ID is not present in the HTML.
$this
->assertNoRaw('id="openLiftLink"');
}