function RulesTestCase::test_4 in Rules 6
File
- rules_test/
rules_test.test, line 57 - Rules Testing Module - File containing test cases.
Class
- RulesTestCase
- @file Rules Testing Module - File containing test cases.
Code
function test_4() {
$argument = array(
'property_xy' => TRUE,
);
rules_invoke_rule_set('rules_test_4', $argument);
$error = FALSE;
$log = rules_test_show_log($error);
$this
->assertFalse($error, t('Rule was not evaluated successfully.') . ' ' . $log);
$this
->assertTrue(strpos($log, 'Loaded variable "node"') !== FALSE, t('Variable was not loaded successfully.') . ' ' . $log);
}