public function RulesConditionalTestCase::testImport in Conditional Rules 7
Same name and namespace in other branches
- 8 tests/rules_conditional.test \RulesConditionalTestCase::testImport()
Tests importing.
File
- tests/
rules_conditional.test, line 345 - SimpleTest testing suites.
Class
- RulesConditionalTestCase
- Default if-else tests.
Code
public function testImport() {
$export = $this
->getFileContents('conditional_test_export.txt');
$comp = entity_import('rules_config', $export);
$this
->assert($this
->doTestEvaluate($comp), 'Imported conditional correctly evaluates.');
}