function rules_test_condition_apostrophe
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 102
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;
}