You are here

public function DomainTestBase::findNoField in Domain Access 8

Finds no field exists (input, textarea, select) with specified locator.

Parameters

string $locator: Input id, name or label.

Return value

\Behat\Mink\Element\NodeElement|null The input field element.

2 calls to DomainTestBase::findNoField()
DomainConfigUIOptionsTest::testFormOptions in domain_config_ui/tests/src/Functional/DomainConfigUIOptionsTest.php
Tests access the the settings form.
DomainConfigUIPermissionsTest::testSettingsAccess in domain_config_ui/tests/src/Functional/DomainConfigUIPermissionsTest.php
Tests access the the settings form.

File

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

Class

DomainTestBase
Class DomainTestBase.

Namespace

Drupal\Tests\domain\Functional

Code

public function findNoField($locator) {
  return $this
    ->assertSession()
    ->fieldNotExists($locator);
}