You are here

public function RequiredByRoleCommonWebTestCase::DotestChangeToDefaultBehavior in Required by role 7.2

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

Test changing the required property to the default behavior.

1 call to RequiredByRoleCommonWebTestCase::DotestChangeToDefaultBehavior()
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 199
Tests for the common cases.

Class

RequiredByRoleCommonWebTestCase
@file Tests for the common cases.

Code

public function DotestChangeToDefaultBehavior() {
  $rid = (int) $this->required_fields_rid;
  $settings = array(
    "instance[settings][required_plugin]" => "core",
    "instance[settings][required_plugin_options]" => 1,
  );
  $this
    ->setFieldRequiredProperty($settings);
  $ids = array(
    'edit-instance-settings-required-plugin-core' => "core",
    'edit-instance-settings-required-plugin-options' => 1,
  );
  $this
    ->checkFieldRequiredProperty($ids);
}