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
480b03be
Commit
480b03be
authored
Aug 18, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefixed constants to avoid possible naming conflicts
parent
2df4dff4
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
83 additions
and
83 deletions
+83
-83
_bootstrap.php
apps/advanced/tests/codeception/backend/_bootstrap.php
+8
-8
_bootstrap.php
apps/advanced/tests/codeception/bin/_bootstrap.php
+4
-4
yii_acceptance
apps/advanced/tests/codeception/bin/yii_acceptance
+4
-4
yii_functional
apps/advanced/tests/codeception/bin/yii_functional
+4
-4
yii_unit
apps/advanced/tests/codeception/bin/yii_unit
+4
-4
_bootstrap.php
apps/advanced/tests/codeception/common/_bootstrap.php
+4
-4
acceptance.php
.../advanced/tests/codeception/config/backend/acceptance.php
+5
-5
functional.php
.../advanced/tests/codeception/config/backend/functional.php
+6
-6
unit.php
apps/advanced/tests/codeception/config/backend/unit.php
+4
-4
unit.php
apps/advanced/tests/codeception/config/common/unit.php
+2
-2
unit.php
apps/advanced/tests/codeception/config/console/unit.php
+4
-4
acceptance.php
...advanced/tests/codeception/config/frontend/acceptance.php
+5
-5
functional.php
...advanced/tests/codeception/config/frontend/functional.php
+4
-4
unit.php
apps/advanced/tests/codeception/config/frontend/unit.php
+4
-4
_bootstrap.php
apps/advanced/tests/codeception/console/_bootstrap.php
+4
-4
_bootstrap.php
apps/advanced/tests/codeception/frontend/_bootstrap.php
+5
-5
_bootstrap.php
apps/basic/tests/codeception/_bootstrap.php
+4
-4
_bootstrap.php
apps/basic/tests/codeception/bin/_bootstrap.php
+3
-3
yii_acceptance
apps/basic/tests/codeception/bin/yii_acceptance
+1
-1
yii_functional
apps/basic/tests/codeception/bin/yii_functional
+1
-1
yii_unit
apps/basic/tests/codeception/bin/yii_unit
+1
-1
functional.php
apps/basic/tests/codeception/config/functional.php
+2
-2
No files found.
apps/advanced/tests/codeception/backend/_bootstrap.php
View file @
480b03be
...
@@ -2,20 +2,20 @@
...
@@ -2,20 +2,20 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'
ROOT_DIR'
)
or
define
(
'
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
defined
(
'
YII_ROOT_DIR'
)
or
define
(
'YII_
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
defined
(
'
BACKEND_ENTRY_URL'
)
or
define
(
'BACKEND
_ENTRY_URL'
,
\Codeception\Configuration
::
config
()[
'config'
][
'test_entry_url'
]);
defined
(
'
YII_BACKEND_TEST_ENTRY_URL'
)
or
define
(
'YII_BACKEND_TEST
_ENTRY_URL'
,
\Codeception\Configuration
::
config
()[
'config'
][
'test_entry_url'
]);
defined
(
'
BACKEND_ENTRY_FILE'
)
or
define
(
'BACKEND_ENTRY_FILE'
,
ROOT_DIR
.
'/backend/web/index-test.php'
);
defined
(
'
YII_TEST_BACKEND_ENTRY_FILE'
)
or
define
(
'YII_TEST_BACKEND_ENTRY_FILE'
,
YII_
ROOT_DIR
.
'/backend/web/index-test.php'
);
require_once
(
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
ROOT_DIR
.
'/common/config/aliases.php'
);
require
(
YII_
ROOT_DIR
.
'/common/config/aliases.php'
);
// set correct script paths
// set correct script paths
// the entry script file path for functional and acceptance tests
// the entry script file path for functional and acceptance tests
$_SERVER
[
'SCRIPT_FILENAME'
]
=
BACKEND_ENTRY_FILE
;
$_SERVER
[
'SCRIPT_FILENAME'
]
=
YII_TEST_
BACKEND_ENTRY_FILE
;
$_SERVER
[
'SCRIPT_NAME'
]
=
BACKEND
_ENTRY_URL
;
$_SERVER
[
'SCRIPT_NAME'
]
=
YII_BACKEND_TEST
_ENTRY_URL
;
$_SERVER
[
'SERVER_NAME'
]
=
'localhost'
;
$_SERVER
[
'SERVER_NAME'
]
=
'localhost'
;
Yii
::
setAlias
(
'@codeception'
,
dirname
(
__DIR__
));
Yii
::
setAlias
(
'@codeception'
,
dirname
(
__DIR__
));
apps/advanced/tests/codeception/bin/_bootstrap.php
View file @
480b03be
...
@@ -11,11 +11,11 @@
...
@@ -11,11 +11,11 @@
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDOUT'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
defined
(
'STDOUT'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
defined
(
'
ROOT_DIR'
)
or
define
(
'
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
defined
(
'
YII_ROOT_DIR'
)
or
define
(
'YII_
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
require_once
(
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require_once
(
ROOT_DIR
.
'/common/config/aliases.php'
);
require_once
(
YII_
ROOT_DIR
.
'/common/config/aliases.php'
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
apps/advanced/tests/codeception/bin/yii_acceptance
View file @
480b03be
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
require_once
__DIR__
.
'/_bootstrap.php'
;
require_once
__DIR__
.
'/_bootstrap.php'
;
$config
=
yii\helpers\ArrayHelper
::
merge
(
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/console/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/console/config/main.php'
),
require
(
ROOT_DIR
.
'/console/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/console/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config/acceptance.php'
),
require
(
dirname
(
__DIR__
)
.
'/config/acceptance.php'
),
[
[
'controllerMap'
=>
[
'controllerMap'
=>
[
...
...
apps/advanced/tests/codeception/bin/yii_functional
View file @
480b03be
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
require_once
__DIR__
.
'/_bootstrap.php'
;
require_once
__DIR__
.
'/_bootstrap.php'
;
$config
=
yii\helpers\ArrayHelper
::
merge
(
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/console/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/console/config/main.php'
),
require
(
ROOT_DIR
.
'/console/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/console/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config/functional.php'
),
require
(
dirname
(
__DIR__
)
.
'/config/functional.php'
),
[
[
'controllerMap'
=>
[
'controllerMap'
=>
[
...
...
apps/advanced/tests/codeception/bin/yii_unit
View file @
480b03be
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
require_once
__DIR__
.
'/_bootstrap.php'
;
require_once
__DIR__
.
'/_bootstrap.php'
;
$config
=
yii\helpers\ArrayHelper
::
merge
(
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/console/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/console/config/main.php'
),
require
(
ROOT_DIR
.
'/console/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/console/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config/unit.php'
),
require
(
dirname
(
__DIR__
)
.
'/config/unit.php'
),
[
[
'controllerMap'
=>
[
'controllerMap'
=>
[
...
...
apps/advanced/tests/codeception/common/_bootstrap.php
View file @
480b03be
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'
ROOT_DIR'
)
or
define
(
'
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
defined
(
'
YII_ROOT_DIR'
)
or
define
(
'YII_
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
require_once
(
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
ROOT_DIR
.
'/common/config/aliases.php'
);
require
(
YII_
ROOT_DIR
.
'/common/config/aliases.php'
);
// set correct script paths
// set correct script paths
$_SERVER
[
'SERVER_NAME'
]
=
'localhost'
;
$_SERVER
[
'SERVER_NAME'
]
=
'localhost'
;
...
...
apps/advanced/tests/codeception/config/backend/acceptance.php
View file @
480b03be
<?php
<?php
defined
(
'
ROOT_DIR'
)
or
define
(
'
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
dirname
(
__DIR__
)))));
defined
(
'
YII_ROOT_DIR'
)
or
define
(
'YII_
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
dirname
(
__DIR__
)))));
return
yii\helpers\ArrayHelper
::
merge
(
return
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/backend/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/backend/config/main.php'
),
require
(
ROOT_DIR
.
'/backend/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/backend/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/acceptance.php'
),
require
(
dirname
(
__DIR__
)
.
'/acceptance.php'
),
require
(
__DIR__
.
'/config.php'
),
require
(
__DIR__
.
'/config.php'
),
...
...
apps/advanced/tests/codeception/config/backend/functional.php
View file @
480b03be
<?php
<?php
$_SERVER
[
'SCRIPT_FILENAME'
]
=
BACKEND_ENTRY_FILE
;
$_SERVER
[
'SCRIPT_FILENAME'
]
=
YII_TEST_
BACKEND_ENTRY_FILE
;
$_SERVER
[
'SCRIPT_NAME'
]
=
BACKEND
_ENTRY_URL
;
$_SERVER
[
'SCRIPT_NAME'
]
=
YII_BACKEND_TEST
_ENTRY_URL
;
return
yii\helpers\ArrayHelper
::
merge
(
return
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/backend/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/backend/config/main.php'
),
require
(
ROOT_DIR
.
'/backend/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/backend/config/main-local.php'
),
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/functional.php'
),
require
(
dirname
(
__DIR__
)
.
'/functional.php'
),
require
(
__DIR__
.
'/config.php'
),
require
(
__DIR__
.
'/config.php'
),
...
...
apps/advanced/tests/codeception/config/backend/unit.php
View file @
480b03be
<?php
<?php
return
yii\helpers\ArrayHelper
::
merge
(
return
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/backend/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/backend/config/main.php'
),
require
(
ROOT_DIR
.
'/backend/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/backend/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/unit.php'
),
require
(
dirname
(
__DIR__
)
.
'/unit.php'
),
require
(
__DIR__
.
'/config.php'
),
require
(
__DIR__
.
'/config.php'
),
...
...
apps/advanced/tests/codeception/config/common/unit.php
View file @
480b03be
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Application config for common unit tests
* Application config for common unit tests
*/
*/
return
yii\helpers\ArrayHelper
::
merge
(
return
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/unit.php'
),
require
(
dirname
(
__DIR__
)
.
'/unit.php'
),
[
[
...
...
apps/advanced/tests/codeception/config/console/unit.php
View file @
480b03be
<?php
<?php
return
yii\helpers\ArrayHelper
::
merge
(
return
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/console/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/console/config/main.php'
),
require
(
ROOT_DIR
.
'/console/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/console/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/unit.php'
),
require
(
dirname
(
__DIR__
)
.
'/unit.php'
),
[
[
...
...
apps/advanced/tests/codeception/config/frontend/acceptance.php
View file @
480b03be
<?php
<?php
defined
(
'
ROOT_DIR'
)
or
define
(
'
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
dirname
(
__DIR__
)))));
defined
(
'
YII_ROOT_DIR'
)
or
define
(
'YII_
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
dirname
(
__DIR__
)))));
return
yii\helpers\ArrayHelper
::
merge
(
return
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/frontend/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/frontend/config/main.php'
),
require
(
ROOT_DIR
.
'/frontend/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/frontend/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/acceptance.php'
),
require
(
dirname
(
__DIR__
)
.
'/acceptance.php'
),
require
(
__DIR__
.
'/config.php'
),
require
(
__DIR__
.
'/config.php'
),
...
...
apps/advanced/tests/codeception/config/frontend/functional.php
View file @
480b03be
...
@@ -3,10 +3,10 @@ $_SERVER['SCRIPT_FILENAME'] = FRONTEND_ENTRY_FILE;
...
@@ -3,10 +3,10 @@ $_SERVER['SCRIPT_FILENAME'] = FRONTEND_ENTRY_FILE;
$_SERVER
[
'SCRIPT_NAME'
]
=
FRONTEND_ENTRY_URL
;
$_SERVER
[
'SCRIPT_NAME'
]
=
FRONTEND_ENTRY_URL
;
return
yii\helpers\ArrayHelper
::
merge
(
return
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/frontend/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/frontend/config/main.php'
),
require
(
ROOT_DIR
.
'/frontend/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/frontend/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/functional.php'
),
require
(
dirname
(
__DIR__
)
.
'/functional.php'
),
require
(
__DIR__
.
'/config.php'
),
require
(
__DIR__
.
'/config.php'
),
...
...
apps/advanced/tests/codeception/config/frontend/unit.php
View file @
480b03be
<?php
<?php
return
yii\helpers\ArrayHelper
::
merge
(
return
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/common/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main.php'
),
require
(
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/common/config/main-local.php'
),
require
(
ROOT_DIR
.
'/frontend/config/main.php'
),
require
(
YII_
ROOT_DIR
.
'/frontend/config/main.php'
),
require
(
ROOT_DIR
.
'/frontend/config/main-local.php'
),
require
(
YII_
ROOT_DIR
.
'/frontend/config/main-local.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/config.php'
),
require
(
dirname
(
__DIR__
)
.
'/unit.php'
),
require
(
dirname
(
__DIR__
)
.
'/unit.php'
),
require
(
__DIR__
.
'/config.php'
),
require
(
__DIR__
.
'/config.php'
),
...
...
apps/advanced/tests/codeception/console/_bootstrap.php
View file @
480b03be
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'
ROOT_DIR'
)
or
define
(
'
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
defined
(
'
YII_ROOT_DIR'
)
or
define
(
'YII_
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
require_once
(
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
ROOT_DIR
.
'/common/config/aliases.php'
);
require
(
YII_
ROOT_DIR
.
'/common/config/aliases.php'
);
// set correct script paths
// set correct script paths
$_SERVER
[
'SERVER_NAME'
]
=
'localhost'
;
$_SERVER
[
'SERVER_NAME'
]
=
'localhost'
;
...
...
apps/advanced/tests/codeception/frontend/_bootstrap.php
View file @
480b03be
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'
ROOT_DIR'
)
or
define
(
'
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
defined
(
'
YII_ROOT_DIR'
)
or
define
(
'YII_
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
defined
(
'FRONTEND_ENTRY_URL'
)
or
define
(
'FRONTEND_ENTRY_URL'
,
\Codeception\Configuration
::
config
()[
'config'
][
'test_entry_url'
]);
defined
(
'FRONTEND_ENTRY_URL'
)
or
define
(
'FRONTEND_ENTRY_URL'
,
\Codeception\Configuration
::
config
()[
'config'
][
'test_entry_url'
]);
defined
(
'FRONTEND_ENTRY_FILE'
)
or
define
(
'FRONTEND_ENTRY_FILE'
,
ROOT_DIR
.
'/frontend/web/index-test.php'
);
defined
(
'FRONTEND_ENTRY_FILE'
)
or
define
(
'FRONTEND_ENTRY_FILE'
,
YII_
ROOT_DIR
.
'/frontend/web/index-test.php'
);
require_once
(
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/autoload.php'
);
require_once
(
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require_once
(
YII_
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
ROOT_DIR
.
'/common/config/aliases.php'
);
require
(
YII_
ROOT_DIR
.
'/common/config/aliases.php'
);
// set correct script paths
// set correct script paths
...
...
apps/basic/tests/codeception/_bootstrap.php
View file @
480b03be
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'test'
);
defined
(
'
TEST_ENTRY_URL'
)
or
define
(
'
TEST_ENTRY_URL'
,
\Codeception\Configuration
::
config
()[
'config'
][
'test_entry_url'
]);
defined
(
'
YII_TEST_ENTRY_URL'
)
or
define
(
'YII_
TEST_ENTRY_URL'
,
\Codeception\Configuration
::
config
()[
'config'
][
'test_entry_url'
]);
defined
(
'
TEST_ENTRY_FILE'
)
or
define
(
'
TEST_ENTRY_FILE'
,
dirname
(
dirname
(
__DIR__
))
.
'/web/index-test.php'
);
defined
(
'
YII_TEST_ENTRY_FILE'
)
or
define
(
'YII_
TEST_ENTRY_FILE'
,
dirname
(
dirname
(
__DIR__
))
.
'/web/index-test.php'
);
require_once
(
__DIR__
.
'/../../vendor/autoload.php'
);
require_once
(
__DIR__
.
'/../../vendor/autoload.php'
);
require_once
(
__DIR__
.
'/../../vendor/yiisoft/yii2/Yii.php'
);
require_once
(
__DIR__
.
'/../../vendor/yiisoft/yii2/Yii.php'
);
$_SERVER
[
'SCRIPT_FILENAME'
]
=
TEST_ENTRY_FILE
;
$_SERVER
[
'SCRIPT_FILENAME'
]
=
YII_
TEST_ENTRY_FILE
;
$_SERVER
[
'SCRIPT_NAME'
]
=
TEST_ENTRY_URL
;
$_SERVER
[
'SCRIPT_NAME'
]
=
YII_
TEST_ENTRY_URL
;
$_SERVER
[
'SERVER_NAME'
]
=
'localhost'
;
$_SERVER
[
'SERVER_NAME'
]
=
'localhost'
;
Yii
::
setAlias
(
'@codeception'
,
__DIR__
);
Yii
::
setAlias
(
'@codeception'
,
__DIR__
);
apps/basic/tests/codeception/bin/_bootstrap.php
View file @
480b03be
...
@@ -6,7 +6,7 @@ defined('YII_ENV') or define('YII_ENV', 'test');
...
@@ -6,7 +6,7 @@ defined('YII_ENV') or define('YII_ENV', 'test');
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDOUT'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
defined
(
'STDOUT'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
defined
(
'
ROOT_DIR'
)
or
define
(
'
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
defined
(
'
YII_ROOT_DIR'
)
or
define
(
'YII_
ROOT_DIR'
,
dirname
(
dirname
(
dirname
(
__DIR__
))));
require
(
ROOT_DIR
.
'/vendor/autoload.php'
);
require
(
YII_
ROOT_DIR
.
'/vendor/autoload.php'
);
require
(
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
YII_
ROOT_DIR
.
'/vendor/yiisoft/yii2/Yii.php'
);
apps/basic/tests/codeception/bin/yii_acceptance
View file @
480b03be
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
require_once
__DIR__
.
'/_bootstrap.php'
;
require_once
__DIR__
.
'/_bootstrap.php'
;
$config
=
yii\helpers\ArrayHelper
::
merge
(
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/config/console.php'
),
require
(
YII_
ROOT_DIR
.
'/config/console.php'
),
require
(
__DIR__
.
'/../config/config.php'
),
require
(
__DIR__
.
'/../config/config.php'
),
[
[
'components'
=>
[
'components'
=>
[
...
...
apps/basic/tests/codeception/bin/yii_functional
View file @
480b03be
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
require_once
__DIR__
.
'/_bootstrap.php'
;
require_once
__DIR__
.
'/_bootstrap.php'
;
$config
=
yii\helpers\ArrayHelper
::
merge
(
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/config/console.php'
),
require
(
YII_
ROOT_DIR
.
'/config/console.php'
),
require
(
__DIR__
.
'/../config/config.php'
),
require
(
__DIR__
.
'/../config/config.php'
),
[
[
'components'
=>
[
'components'
=>
[
...
...
apps/basic/tests/codeception/bin/yii_unit
View file @
480b03be
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
require_once
__DIR__
.
'/_bootstrap.php'
;
require_once
__DIR__
.
'/_bootstrap.php'
;
$config
=
yii\helpers\ArrayHelper
::
merge
(
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
ROOT_DIR
.
'/config/console.php'
),
require
(
YII_
ROOT_DIR
.
'/config/console.php'
),
require
(
__DIR__
.
'/../config/config.php'
),
require
(
__DIR__
.
'/../config/config.php'
),
[
[
'components'
=>
[
'components'
=>
[
...
...
apps/basic/tests/codeception/config/functional.php
View file @
480b03be
<?php
<?php
$_SERVER
[
'SCRIPT_FILENAME'
]
=
TEST_ENTRY_FILE
;
$_SERVER
[
'SCRIPT_FILENAME'
]
=
YII_
TEST_ENTRY_FILE
;
$_SERVER
[
'SCRIPT_NAME'
]
=
TEST_ENTRY_URL
;
$_SERVER
[
'SCRIPT_NAME'
]
=
YII_
TEST_ENTRY_URL
;
/**
/**
* Application configuration for functional tests
* Application configuration for functional 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