public function CommerceMigrateTestCase::testRollback in Commerce Migrate 7
Tests of removing imported data.
File
- tests/
commerce_migrate_tests.test, line 112 - Tests of "Commerce Migrate".
Class
- CommerceMigrateTestCase
- Class CommerceMigrateTestCase.
Code
public function testRollback() {
$this
->migrate('rollback');
try {
$this
->testOrder();
$this
->fail('Order should not be loaded after rollback!');
} catch (\Exception $e) {
$this
->pass($e
->getMessage());
}
try {
$this
->testProduct();
$this
->fail('Product should not be loaded after rollback!');
} catch (\Exception $e) {
$this
->pass($e
->getMessage());
}
}