luyadev/luya-module-cms

View on GitHub
tests/ModelTestCase.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace cmstests;

use luya\admin\components\AdminLanguage;
use luya\testsuite\cases\ConsoleApplicationTestCase;

class ModelTestCase extends ConsoleApplicationTestCase
{
    public function getConfigArray()
    {
        return [
            'id' => 'basetestcase',
            'basePath' => dirname(__DIR__),
            'components' => [
                'db' => [
                    'class' => 'yii\db\Connection',
                    'dsn' => 'sqlite::memory:',
                ],
                'urlManager' => [
                    'cache' => null,
                ],
                'adminLanguage' => [
                    'class' => AdminLanguage::class,
                ]
            ]
        ];
    }
}