You are here

public function RulesConditionalWhileTestCase::testExport in Conditional Rules 7

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

Tests exporting.

File

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

Class

RulesConditionalWhileTestCase
While tests.

Code

public function testExport() {
  $comp = $this
    ->createTestComponent();
  $comp->name = 'while_test';
  $export = $this
    ->getFileContents('while_test_export.txt');
  $this
    ->assertEqual($export, $comp
    ->export(), 'While loop is correctly exported.');
}