Skip to content

Commit 3c90695

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

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/console/controllers/MigrateControllerTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,9 @@ public function setUp()
5151

5252
public function tearDown()
5353
{
54-
parent::tearDown();
55-
if (extension_loaded('mongodb')) {
56-
try {
57-
yii::$app->mongodb->getCollection('migration')->drop();
58-
} catch (Exception $e) {
59-
// shutdown exception
60-
}
61-
}
54+
yii::$app->mongodb->getCollection('migration')->drop();
6255
$this->tearDownMigrationPath();
56+
parent::tearDown();
6357
}
6458

6559
public function setUpMigrationPath()

0 commit comments

Comments
 (0)