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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
65844bf5
Commit
65844bf5
authored
Jan 29, 2015
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7082 from githubjeka/faker-config
Move fixture configuration in config file
parents
a6314c87
2ef29fad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
22 deletions
+18
-22
yii
apps/advanced/tests/codeception/bin/yii
+1
-11
config.php
apps/advanced/tests/codeception/config/config.php
+8
-0
yii
apps/basic/tests/codeception/bin/yii
+1
-11
config.php
apps/basic/tests/codeception/config/config.php
+8
-0
No files found.
apps/advanced/tests/codeception/bin/yii
View file @
65844bf5
...
...
@@ -15,17 +15,7 @@ $config = yii\helpers\ArrayHelper::merge(
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-local.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'
,
],
],
]
require
(
dirname
(
__DIR__
)
.
'/config/config.php'
)
);
$application
=
new
yii\console\Application
(
$config
);
...
...
apps/advanced/tests/codeception/config/config.php
View file @
65844bf5
...
...
@@ -3,6 +3,14 @@
* Application configuration shared by all applications and test types
*/
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'
=>
[
'db'
=>
[
'dsn'
=>
'mysql:host=localhost;dbname=yii2_advanced_tests'
,
...
...
apps/basic/tests/codeception/bin/yii
View file @
65844bf5
...
...
@@ -12,17 +12,7 @@ require_once __DIR__ . '/_bootstrap.php';
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
YII_APP_BASE_PATH
.
'/config/console.php'
),
require
(
__DIR__
.
'/../config/config.php'
),
[
'controllerMap'
=>
[
'fixture'
=>
[
'class'
=>
'yii\faker\FixtureController'
,
'fixtureDataPath'
=>
'@tests/codeception/fixtures'
,
'templatePath'
=>
'@tests/codeception/templates'
,
'namespace'
=>
'tests\codeception\fixtures'
,
],
],
]
require
(
__DIR__
.
'/../config/config.php'
)
);
$application
=
new
yii\console\Application
(
$config
);
...
...
apps/basic/tests/codeception/config/config.php
View file @
65844bf5
...
...
@@ -3,6 +3,14 @@
* Application configuration shared by all test types
*/
return
[
'controllerMap'
=>
[
'fixture'
=>
[
'class'
=>
'yii\faker\FixtureController'
,
'fixtureDataPath'
=>
'@tests/codeception/fixtures'
,
'templatePath'
=>
'@tests/codeception/templates'
,
'namespace'
=>
'tests\codeception\fixtures'
,
],
],
'components'
=>
[
'db'
=>
[
'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