You are here

public function RulesConditionalSwitchTestCase::testImport in Conditional Rules 7

Same name and namespace in other branches
  1. 8 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.');
}