You are here

function RulesTestCase::test_5 in Rules 6

File

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

Class

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

Code

function test_5() {
  rules_invoke_rule_set('rules_test_5');
  $error = FALSE;
  $log = rules_test_show_log($error);
  $this
    ->assertFalse($error, t('Rule was not evaluated successfully.') . ' ' . $log);
  $this
    ->assertTrue(strpos($log, 'Successfully added the new variable "test"') !== FALSE, t('Variable was not added successfully.') . ' ' . $log);
}