You are here

public function DomainTestBase::findLink in Domain Access 8

Finds link with specified locator.

Parameters

string $locator: Link id, title, text or image alt.

Return value

\Behat\Mink\Element\NodeElement|null The link node element.

3 calls to DomainTestBase::findLink()
DomainContentCountTest::testDomainContentCount in domain_content/tests/src/Functional/DomainContentCountTest.php
Tests domain content count.
DomainContentPermissionsTest::testDomainContentPermissions in domain_content/tests/src/Functional/DomainContentPermissionsTest.php
Tests domain content permissions.
DomainNavBlockTest::testDomainNav in domain/tests/src/Functional/DomainNavBlockTest.php
Test domain navigation block.

File

domain/tests/src/Functional/DomainTestBase.php, line 91

Class

DomainTestBase
Class DomainTestBase.

Namespace

Drupal\Tests\domain\Functional

Code

public function findLink($locator) {
  return $this
    ->getSession()
    ->getPage()
    ->findLink($locator);
}