mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-08 00:07:23 +01:00
Fixes #16822: Create config dir recursively in message/config
This commit is contained in:
committed by
Alexander Makarov
parent
8150cd1ed4
commit
db1d730695
@@ -153,6 +153,13 @@ abstract class BaseMessageControllerTest extends TestCase
|
||||
"Unable to create config file from template. Command output:\n\n" . $out);
|
||||
}
|
||||
|
||||
public function testActionConfigSubDir()
|
||||
{
|
||||
$configFileName = Yii::getAlias('@yiiunit/runtime/not_existing_subdir') . DIRECTORY_SEPARATOR . 'message_controller_test_config-' . md5(uniqid()) . '.php';
|
||||
$out = $this->runMessageControllerAction('config', [$configFileName]);
|
||||
$this->assertFileExists($configFileName, "Unable to create config file in subdirectory. Command output:\n\n" . $out);
|
||||
}
|
||||
|
||||
public function testConfigFileNotExist()
|
||||
{
|
||||
$this->expectException('yii\\console\\Exception');
|
||||
|
||||
Reference in New Issue
Block a user