You are here

function RulesTestCase::test_3 in Rules 6

File

rules_test/rules_test.test, line 46
Rules Testing Module - File containing test cases.

Class

RulesTestCase
@file Rules Testing Module - File containing test cases.

Code

function test_3() {
  $argument = array(
    'property_xy' => TRUE,
  );
  rules_invoke_rule_set('rules_test_2', array(
    'rules_test' => &$argument,
  ));
  $error = FALSE;
  $log = rules_test_show_log($error);
  $this
    ->assertTrue(isset($argument['altered']) && $argument['altered'], t('Argument has not been altered correctly.'));
  $this
    ->assertFalse($error, t('Rule was not evaluated successfully.') . ' ' . $log);
}