public function RequiredByRoleCommonWebTestCase::DotestChangeToDefaultBehaviorNotRequired in Required by role 7.2
Test changing the required property to the default behavior and NOT required.
1 call to RequiredByRoleCommonWebTestCase::DotestChangeToDefaultBehaviorNotRequired()
- RequiredByRoleCommonWebTestCase::testCommonBehaviors in tests/
required_by_role_test/ RequiredByRoleCommonWebTestCase.test - Group the tests for better performance.
File
- tests/
required_by_role_test/ RequiredByRoleCommonWebTestCase.test, line 245 - Tests for the common cases.
Class
- RequiredByRoleCommonWebTestCase
- @file Tests for the common cases.
Code
public function DotestChangeToDefaultBehaviorNotRequired() {
$rid = (int) $this->required_fields_rid;
$settings = array(
"instance[settings][required_plugin]" => "core",
"instance[settings][required_plugin_options]" => FALSE,
);
$this
->setFieldRequiredProperty($settings);
$ids = array(
'edit-instance-settings-required-plugin-core' => "core",
'edit-instance-settings-required-plugin-options' => FALSE,
);
$this
->checkFieldRequiredProperty($ids);
}