Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Sep 21, 2023
1 parent 2d98c9d commit 0425642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/framework/log/DbTargetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace yiiunit\framework\log;

use Yii;
use yii\console\ExitCode;
use yii\db\Connection;
use yii\db\Query;
use yii\log\Logger;
Expand Down Expand Up @@ -57,7 +58,7 @@ protected static function runConsoleAction($route, $params = [])
ob_start();
$result = Yii::$app->runAction($route, $params);
echo 'Result is ' . $result;
if ($result !== \yii\console\Controller::EXIT_CODE_NORMAL) {
if ($result !== ExitCode::OK) {
ob_end_flush();
} else {
ob_end_clean();
Expand Down

0 comments on commit 0425642

Please sign in to comment.