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