mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #15221: Console improvements
This commit is contained in:

committed by
Alexander Makarov

parent
c9faed4480
commit
0948109a19
@ -58,6 +58,11 @@ class ControllerTest extends TestCase
|
||||
$this->assertEquals('from params', $fromParam);
|
||||
$this->assertEquals('notdefault', $other);
|
||||
|
||||
$params = ['test-array' => 'from params,notdefault'];
|
||||
list($fromParam, $other) = $controller->runAction('aksi6', $params);
|
||||
$this->assertEquals('from params', $fromParam);
|
||||
$this->assertEquals('notdefault', $other);
|
||||
|
||||
$params = ['avaliable'];
|
||||
$message = Yii::t('yii', 'Missing required arguments: {params}', ['params' => implode(', ', ['missing'])]);
|
||||
$this->expectException('yii\console\Exception');
|
||||
|
Reference in New Issue
Block a user