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