You are here

protected function RequiredByRoleCommonWebTestCase::getFieldMachineName in Required by role 7

Same name and namespace in other branches
  1. 7.2 tests/required_by_role_test/RequiredByRoleCommonWebTestCase.test \RequiredByRoleCommonWebTestCase::getFieldMachineName()

Helper function to get the field machine name.

4 calls to RequiredByRoleCommonWebTestCase::getFieldMachineName()
RequiredByRoleCommonWebTestCase::checkFieldRequiredProperty in tests/required_by_role_test/RequiredByRoleCommonWebTestCase.test
Helper function check the settings.
RequiredByRoleCommonWebTestCase::createTextField in tests/required_by_role_test/RequiredByRoleCommonWebTestCase.test
Helper function to create an email field.
RequiredByRoleCommonWebTestCase::DotestDefaultValueIsNotRequired in tests/required_by_role_test/RequiredByRoleCommonWebTestCase.test
Check if the default_value_widget is always NOT required.
RequiredByRoleCommonWebTestCase::setFieldRequiredProperty in tests/required_by_role_test/RequiredByRoleCommonWebTestCase.test
Helper function to set the required property.

File

tests/required_by_role_test/RequiredByRoleCommonWebTestCase.test, line 83
Tests for the common cases.

Class

RequiredByRoleCommonWebTestCase
@file Tests for the common cases.

Code

protected function getFieldMachineName() {
  return 'field_' . $this
    ->getFieldName();
}