Skip to content

Commit 9f6bae1

Browse files
committed
Fixed tests
1 parent 1a56c5a commit 9f6bae1

File tree

5 files changed

+3133
-213
lines changed

5 files changed

+3133
-213
lines changed

api/codeception.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ paths:
55
data: tests/_data
66
helpers: tests/_support
77
settings:
8-
bootstrap: _bootstrap.php
98
memory_limit: 1024M
109
colors: true
10+
bootstrap: _bootstrap.php
1111
modules:
1212
config:
1313
Yii2:
14-
configFile: 'config/test.php'
15-
14+
configFile: "config/test.php"
1615
# To enable code coverage:
1716
#coverage:
1817
# #c3_url: http://localhost:8080/index-test.php/

api/composer.json

Lines changed: 78 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,83 @@
11
{
2-
"name": "chrisleekr/yii2-angular-boilerplate",
3-
"description": "Yii 2 REST API",
4-
"keywords": [
5-
"yii2",
6-
"boilerplate"
7-
],
8-
"homepage": "https://github.com/chrisleekr/yii2-angular-boilerplate",
9-
"type": "project",
10-
"license": "BSD-3-Clause",
11-
"support": {
12-
"issues": "https://github.com/chrisleekr/yii2-angular-boilerplate/issues?state=open",
13-
"source": "https://github.com/chrisleekr/yii2-angular-boilerplate"
14-
},
15-
"minimum-stability": "stable",
16-
"require": {
17-
"php": ">=7.3.0",
18-
"yiisoft/yii2": "~2.0.14",
19-
"yiisoft/yii2-bootstrap": "~2.0.0",
20-
"yiisoft/yii2-swiftmailer": "~2.0.0",
21-
"firebase/php-jwt": "^4.0",
22-
"guzzlehttp/guzzle": "^6.3",
23-
"ext-json": "*"
24-
},
25-
"require-dev": {
26-
"yiisoft/yii2-debug": "~2.0.0",
27-
"yiisoft/yii2-gii": "~2.0.0",
28-
"yiisoft/yii2-faker": "~2.0.0",
29-
"codeception/verify": "~0.3.1",
30-
"codeception/specify": "~0.4.3",
31-
"flow/jsonpath": "^0.3",
32-
"squizlabs/php_codesniffer": "3.*",
33-
"yiisoft/yii2-coding-standards": "^2.0"
34-
},
35-
"config": {
36-
"process-timeout": 1800,
37-
"fxp-asset": {
38-
"enabled": false
39-
}
40-
},
41-
"scripts": {
42-
"post-install-cmd": [
43-
"yii\\composer\\Installer::postInstall"
2+
"name": "chrisleekr/yii2-angular-boilerplate",
3+
"description": "Yii 2 REST API",
4+
"keywords": [
5+
"yii2",
6+
"boilerplate"
447
],
45-
"post-create-project-cmd": [
46-
"yii\\composer\\Installer::postCreateProject",
47-
"yii\\composer\\Installer::postInstall"
48-
],
49-
"sniff": "vendor/bin/phpcs --extensions=php",
50-
"sniff:fix": "vendor/bin/phpcbf --extensions=php",
51-
"test:unit": "vendor/bin/codecept run unit",
52-
"test:functional": "vendor/bin/codecept run functional"
53-
},
54-
"extra": {
55-
"yii\\composer\\Installer::postCreateProject": {
56-
"setPermission": [
57-
{
58-
"runtime": "0777",
59-
"web/assets": "0777",
60-
"yii": "0755"
8+
"homepage": "https://github.com/chrisleekr/yii2-angular-boilerplate",
9+
"type": "project",
10+
"license": "BSD-3-Clause",
11+
"support": {
12+
"issues": "https://github.com/chrisleekr/yii2-angular-boilerplate/issues?state=open",
13+
"source": "https://github.com/chrisleekr/yii2-angular-boilerplate"
14+
},
15+
"minimum-stability": "stable",
16+
"require": {
17+
"php": ">=7.3.0",
18+
"yiisoft/yii2": "~2.0.14",
19+
"yiisoft/yii2-bootstrap": "~2.0.0",
20+
"yiisoft/yii2-swiftmailer": "~2.0.0",
21+
"firebase/php-jwt": "^4.0",
22+
"guzzlehttp/guzzle": "^6.3",
23+
"ext-json": "*"
24+
},
25+
"require-dev": {
26+
"yiisoft/yii2-debug": "~2.0.0",
27+
"yiisoft/yii2-gii": "~2.0.0",
28+
"yiisoft/yii2-faker": "~2.0.0",
29+
"flow/jsonpath": "^0.5",
30+
"squizlabs/php_codesniffer": "3.*",
31+
"yiisoft/yii2-coding-standards": "^2.0",
32+
"codeception/codeception": "^4.1",
33+
"codeception/verify": "~0.3.1",
34+
"codeception/specify": "~0.4.3",
35+
"symfony/browser-kit": ">=2.7 <=4.2.4",
36+
"codeception/module-filesystem": "^1.0.0",
37+
"codeception/module-asserts": "^1.2",
38+
"codeception/module-yii2": "^1.1",
39+
"codeception/module-rest": "^1.2",
40+
"codeception/module-phpbrowser": "^1.0"
41+
},
42+
"config": {
43+
"process-timeout": 1800,
44+
"fxp-asset": {
45+
"enabled": false
6146
}
62-
]
6347
},
64-
"yii\\composer\\Installer::postInstall": {
65-
"generateCookieValidationKey": [
66-
"config/web.php"
67-
]
68-
}
69-
},
70-
"repositories": [
71-
{
72-
"type": "composer",
73-
"url": "https://asset-packagist.org"
74-
}
75-
]
48+
"scripts": {
49+
"post-install-cmd": [
50+
"yii\\composer\\Installer::postInstall"
51+
],
52+
"post-create-project-cmd": [
53+
"yii\\composer\\Installer::postCreateProject",
54+
"yii\\composer\\Installer::postInstall"
55+
],
56+
"sniff": "vendor/bin/phpcs --extensions=php",
57+
"sniff:fix": "vendor/bin/phpcbf --extensions=php",
58+
"test:unit": "vendor/bin/codecept run unit",
59+
"test:functional": "vendor/bin/codecept run functional"
60+
},
61+
"extra": {
62+
"yii\\composer\\Installer::postCreateProject": {
63+
"setPermission": [
64+
{
65+
"runtime": "0777",
66+
"web/assets": "0777",
67+
"yii": "0755"
68+
}
69+
]
70+
},
71+
"yii\\composer\\Installer::postInstall": {
72+
"generateCookieValidationKey": [
73+
"config/web.php"
74+
]
75+
}
76+
},
77+
"repositories": [
78+
{
79+
"type": "composer",
80+
"url": "https://asset-packagist.org"
81+
}
82+
]
7683
}

0 commit comments

Comments
 (0)