public function RuleConditionSetTestCase::testImport in Conditional Rules 8
Same name and namespace in other branches
- 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.');
}