luyatests\core\console\controllers\ModuleControllerTest::testRenderReadme PHP Method

testRenderReadme() public method

public testRenderReadme ( )
    public function testRenderReadme()
    {
        $ctrl = new ModuleController('module', Yii::$app);
        $content = $ctrl->renderReadme([], 'foo', 'app\\modules');
        $tpl = <<<'EOT'
# Foo Module
 
File has been created with `module/create` command on LUYA version 1.0.0-dev. 
 
## Installation

In order to add the modules to your project go into the modules section of your config:

```php
return [
    'modules' => [
        // ...
        'foo' => 'app\modules\frontend\Module',
        'fooadmin' => 'app\modules\admin\Module',
        // ...
    ],
];
```
EOT;
        $this->assertSame($tpl, $content);
    }