tests/WebModelTestCase.php
<?php
namespace cmstests;
use luya\testsuite\cases\WebApplicationTestCase;
abstract class WebModelTestCase extends WebApplicationTestCase
{
public function getConfigArray()
{
return [
'id' => 'webmodel',
'basePath' => dirname(__DIR__),
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'sqlite::memory:',
],
'urlManager' => [
'cache' => null,
]
],
'modules' => [
'admin' => [
'class' => 'luya\admin\Module',
'queueMutexClass' => 'yii\mutex\FileMutex',
],
'cms' => 'luya\cms\frontend\Module',
'cmsadmin' => 'luya\cms\admin\Module',
]
];
}
}