You are here

public function RuleConditionSetTestCase::testImport in Conditional Rules 8

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

Tests importing.

File

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

Class

RuleConditionSetTestCase
Rule condition set tests.

Code

public function testImport() {
  $export = $this
    ->getFileContents('rule_condition_set_test_export.txt');
  $comp = entity_import('rules_config', $export);
  $this
    ->assert($this
    ->doTestEvaluate($comp), 'Imported rule condition set correctly evaluates.');
}