Skip to content

Commit fda59d8

Browse files
committed
Update MigrateControllerTest.php
1 parent 3c90695 commit fda59d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/console/controllers/MigrateControllerTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ public function setUp()
5151

5252
public function tearDown()
5353
{
54-
yii::$app->mongodb->getCollection('migration')->drop();
54+
try {
55+
yii::$app->mongodb->getCollection('migration')->drop();
56+
} catch (Exception $e) {
57+
// shutdown exception
58+
}
5559
$this->tearDownMigrationPath();
5660
parent::tearDown();
5761
}

0 commit comments

Comments
 (0)