You are here

public function RuleConditionSetTestCase::doTestEvaluate in Conditional Rules 7

Same name and namespace in other branches
  1. 8 tests/rules_conditional.test \RuleConditionSetTestCase::doTestEvaluate()

Tests evaluating a rule condition set.

2 calls to RuleConditionSetTestCase::doTestEvaluate()
RuleConditionSetTestCase::testEvaluate in tests/rules_conditional.test
Tests evaluation.
RuleConditionSetTestCase::testImport in tests/rules_conditional.test
Tests importing.

File

tests/rules_conditional.test, line 644
SimpleTest testing suites.

Class

RuleConditionSetTestCase
Rule condition set tests.

Code

public function doTestEvaluate(RulesPlugin $comp) {
  $result = TRUE;
  $result = $this
    ->assertTrue($comp
    ->execute('condition set')) && $result;
  $result = $this
    ->assertFalse($comp
    ->execute('wrong value')) && $result;
  return $result;
}