You are here

function rules_test_condition_apostrophe in Rules 7.2

Condition testing use of an apostrophe in a condition label.

Specifically, we want to ensure that special characters do not show up as HTML-encoded in the user interface.

1 string reference to 'rules_test_condition_apostrophe'
RulesUiTestCase::testConditionLabel in rules_admin/tests/rules_admin.test
Tests that NOT condition labels are not HTML-encoded in the UI.

File

tests/rules_test.rules.inc, line 101
Includes any rules integration provided by the module.

Code

function rules_test_condition_apostrophe($settings, $state, $element) {
  if (!$element instanceof RulesCondition) {
    throw new Exception('Rules element has not been passed to condition.');
  }
  rules_log('condition apostrophe called');
  return TRUE;
}