Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
c0f11670
Commit
c0f11670
authored
Jan 29, 2015
by
Evgeniy Tkachenko
Committed by
githubjeka
Jan 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move fixture configuration in config file
parent
dfe56987
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
yii
apps/advanced/tests/codeception/bin/yii
+1
-11
config.php
apps/advanced/tests/codeception/config/config.php
+10
-0
yii
apps/basic/tests/codeception/bin/yii
+1
-11
config.php
apps/basic/tests/codeception/config/config.php
+10
-0
No files found.
apps/advanced/tests/codeception/bin/yii
View file @
c0f11670
...
@@ -15,17 +15,7 @@ $config = yii\helpers\ArrayHelper::merge(
...
@@ -15,17 +15,7 @@ $config = yii\helpers\ArrayHelper::merge(
require
(
YII_APP_BASE_PATH
.
'/common/config/main-local.php'
),
require
(
YII_APP_BASE_PATH
.
'/common/config/main-local.php'
),
require
(
YII_APP_BASE_PATH
.
'/console/config/main.php'
),
require
(
YII_APP_BASE_PATH
.
'/console/config/main.php'
),
require
(
YII_APP_BASE_PATH
.
'/console/config/main-local.php'
),
require
(
YII_APP_BASE_PATH
.
'/console/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config/config.php'
)
[
'controllerMap'
=>
[
'fixture'
=>
[
'class'
=>
'yii\faker\FixtureController'
,
'fixtureDataPath'
=>
'@tests/codeception/common/fixtures/data'
,
'templatePath'
=>
'@tests/codeception/common/templates/fixtures'
,
'namespace'
=>
'tests\codeception\common\fixtures'
,
],
],
]
);
);
$application
=
new
yii\console\Application
(
$config
);
$application
=
new
yii\console\Application
(
$config
);
...
...
apps/advanced/tests/codeception/config/config.php
View file @
c0f11670
...
@@ -3,6 +3,16 @@
...
@@ -3,6 +3,16 @@
* Application configuration shared by all applications and test types
* Application configuration shared by all applications and test types
*/
*/
return
[
return
[
[
'controllerMap'
=>
[
'fixture'
=>
[
'class'
=>
'yii\faker\FixtureController'
,
'fixtureDataPath'
=>
'@tests/codeception/common/fixtures/data'
,
'templatePath'
=>
'@tests/codeception/common/templates/fixtures'
,
'namespace'
=>
'tests\codeception\common\fixtures'
,
],
],
],
'components'
=>
[
'components'
=>
[
'db'
=>
[
'db'
=>
[
'dsn'
=>
'mysql:host=localhost;dbname=yii2_advanced_tests'
,
'dsn'
=>
'mysql:host=localhost;dbname=yii2_advanced_tests'
,
...
...
apps/basic/tests/codeception/bin/yii
View file @
c0f11670
...
@@ -12,17 +12,7 @@ require_once __DIR__ . '/_bootstrap.php';
...
@@ -12,17 +12,7 @@ require_once __DIR__ . '/_bootstrap.php';
$config
=
yii\helpers\ArrayHelper
::
merge
(
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
YII_APP_BASE_PATH
.
'/config/console.php'
),
require
(
YII_APP_BASE_PATH
.
'/config/console.php'
),
require
(
__DIR__
.
'/../config/config.php'
),
require
(
__DIR__
.
'/../config/config.php'
)
[
'controllerMap'
=>
[
'fixture'
=>
[
'class'
=>
'yii\faker\FixtureController'
,
'fixtureDataPath'
=>
'@tests/codeception/fixtures'
,
'templatePath'
=>
'@tests/codeception/templates'
,
'namespace'
=>
'tests\codeception\fixtures'
,
],
],
]
);
);
$application
=
new
yii\console\Application
(
$config
);
$application
=
new
yii\console\Application
(
$config
);
...
...
apps/basic/tests/codeception/config/config.php
View file @
c0f11670
...
@@ -3,6 +3,16 @@
...
@@ -3,6 +3,16 @@
* Application configuration shared by all test types
* Application configuration shared by all test types
*/
*/
return
[
return
[
[
'controllerMap'
=>
[
'fixture'
=>
[
'class'
=>
'yii\faker\FixtureController'
,
'fixtureDataPath'
=>
'@tests/codeception/fixtures'
,
'templatePath'
=>
'@tests/codeception/templates'
,
'namespace'
=>
'tests\codeception\fixtures'
,
],
],
],
'components'
=>
[
'components'
=>
[
'db'
=>
[
'db'
=>
[
'dsn'
=>
'mysql:host=localhost;dbname=yii2_basic_tests'
,
'dsn'
=>
'mysql:host=localhost;dbname=yii2_basic_tests'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment