protected function WebformAssertLegacyTrait::assertNoFieldByName in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertNoFieldByName()
Asserts that a field does not exist with the given name and value.
Parameters
string $name: Name of field to assert.
string $value: (optional) Value for the field, to assert that the field's value on the page does not match it. You may pass in NULL to skip checking the value, while still checking that the field does not exist. However, the default value ('') asserts that the field value is not an empty string.
31 calls to WebformAssertLegacyTrait::assertNoFieldByName()
- WebformAccessTest::testWebformAdministratorAccess in modules/
webform_access/ tests/ src/ Functional/ WebformAccessTest.php - Tests webform administrator access.
- WebformElementAccessTest::testAccess in tests/
src/ Functional/ Element/ WebformElementAccessTest.php - Test element access.
- WebformElementExcludedColumnsTest::testExcluedElements in tests/
src/ Functional/ Element/ WebformElementExcludedColumnsTest.php - Test excluded columns element.
- WebformElementExcludedElementsTest::testExcluedElements in tests/
src/ Functional/ Element/ WebformElementExcludedElementsTest.php - Test excluded elements element.
- WebformElementMultipleTest::testMultiple in tests/
src/ Functional/ Element/ WebformElementMultipleTest.php - Tests multiple element.
File
- tests/
src/ Traits/ WebformAssertLegacyTrait.php, line 258
Class
- WebformAssertLegacyTrait
- Provides convenience methods for assertions in browser tests.
Namespace
Drupal\Tests\webform\TraitsCode
protected function assertNoFieldByName($name, $value = '') {
$this
->assertNoFieldByXPath($this
->constructFieldXpath('name', $name), $value);
}