You are here

public function RulesConditionalTestCase::testExport in Conditional Rules 7

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

Tests exporting.

File

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

Class

RulesConditionalTestCase
Default if-else tests.

Code

public function testExport() {
  $comp = $this
    ->createTestComponent();
  $comp->name = 'conditional_test';
  $export = $this
    ->getFileContents('conditional_test_export.txt');
  $this
    ->assertEqual($export, $comp
    ->export(), 'Conditional is correctly exported.');
}