You are here

public function RuleConditionSetTestCase::testExport in Conditional Rules 7

Same name and namespace in other branches
  1. 8 tests/rules_conditional.test \RuleConditionSetTestCase::testExport()

Tests exporting.

File

tests/rules_conditional.test, line 601
SimpleTest testing suites.

Class

RuleConditionSetTestCase
Rule condition set tests.

Code

public function testExport() {
  $comp = $this
    ->createConditionSet();
  $comp->name = 'rule_condition_set_test';
  $export = $this
    ->getFileContents('rule_condition_set_test_export.txt');
  $this
    ->assertEqual($export, $comp
    ->export(), 'Rule condition set is correctly exported.');
}