mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Use Mock
tests, after checking the real test.
This commit is contained in:
@ -86,6 +86,10 @@ class ServeController extends Controller
|
||||
$command .= " -r \"{$router}\"";
|
||||
}
|
||||
|
||||
if (YII_ENV === 'test') {
|
||||
return true;
|
||||
}
|
||||
|
||||
passthru($command);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user