You are here

public function RulesConditionalSwitchTestCase::testExport in Conditional Rules 7

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

Tests exporting.

File

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

Class

RulesConditionalSwitchTestCase
Switch tests.

Code

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