Skip to content

Commit fe111e5

Browse files
committed
Fix: Add unit tests for controllers and Components (Contact, Hello, Identity, Menu).
1 parent 6e16572 commit fe111e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+19304
-706
lines changed

codeception.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
namespace: App\Tests
1+
namespace: app\tests
22
bootstrap: _bootstrap.php
3-
support_namespace: Support
3+
support_namespace: support
44
paths:
5-
tests: tests
6-
output: tests/_output
7-
data: tests/Support/Data
8-
support: tests/Support
9-
envs: tests/_envs
5+
tests: tests
6+
output: tests/_output
7+
data: tests/support/data
8+
support: tests/support
9+
envs: tests/_envs
1010
actor_suffix: Tester
1111
settings:
12-
memory_limit: 1024M
13-
colors: true
12+
memory_limit: 1024M
13+
colors: true
1414
modules:
15-
config:
16-
Yii2:
17-
configFile: 'config/build-test.php'
15+
config:
16+
Yii2:
17+
configFile: 'config/web/app.php'
1818
extensions:
19-
enabled:
20-
- Codeception\Extension\RunFailed
19+
enabled:
20+
- Codeception\Extension\RunFailed
2121
coverage:
22-
enabled: true
23-
whitelist:
24-
include:
25-
- src/*
22+
enabled: true
23+
whitelist:
24+
include:
25+
- src/*

composer.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,16 @@
99
"yii2"
1010
],
1111
"license": "mit",
12-
"minimum-stability": "dev",
13-
"prefer-stable": true,
1412
"require": {
1513
"php": ">=8.1",
1614
"php-forge/foxy": "^0.1",
1715
"ui-awesome/html": "^0.3",
1816
"ui-awesome/html-component-bootstrap5": "^1.0@dev",
1917
"ui-awesome/html-svg":"^0.2",
2018
"yii2-extensions/localeurls": "^0.1.0",
21-
"yiisoft/config": "^1.4",
22-
"yiisoft/yii2": "22.0.x-dev",
23-
"yiisoft/yii2-bootstrap5": "22.x-dev",
24-
"yiisoft/yii2-symfonymailer": "22.x-dev"
19+
"yiisoft/yii2": "^2.0.53|^22",
20+
"yiisoft/yii2-bootstrap5": "^2.0.50|^22",
21+
"yiisoft/yii2-symfonymailer": "^4.0|^22"
2522
},
2623
"require-dev": {
2724
"codeception/c3": "^2.8",
@@ -38,9 +35,9 @@
3835
"symfony/browser-kit": "^6.3",
3936
"symfony/process": "^6.3",
4037
"symplify/easy-coding-standard": "^12.3",
41-
"yii2-extensions/phpstan": "^0.2.3",
42-
"yiisoft/yii2-debug": "22.x-dev",
43-
"yiisoft/yii2-gii": "22.x-dev"
38+
"yii2-extensions/phpstan": "^0.3.0",
39+
"yiisoft/yii2-debug": "^2.1.27|^22",
40+
"yiisoft/yii2-gii": "^2.2.7|^22"
4441
},
4542
"autoload": {
4643
"psr-4": {
@@ -55,15 +52,13 @@
5552
"extra": {
5653
"branch-alias": {
5754
"dev-master": "0.1-dev"
58-
},
59-
"config-plugin-file": "/config/config-plugin.php"
55+
}
6056
},
6157
"config": {
6258
"allow-plugins": {
6359
"codeception/c3": true,
6460
"yiisoft/yii2-composer": true,
6561
"composer/installers": true,
66-
"yiisoft/config": true,
6762
"php-forge/foxy": true,
6863
"phpstan/extension-installer": true
6964
}
@@ -74,5 +69,11 @@
7469
"rector": "./vendor/bin/rector process src",
7570
"static": "./vendor/bin/phpstan analyse src --memory-limit=512M",
7671
"tests": "./vendor/bin/codecept run"
77-
}
72+
},
73+
"repositories": [
74+
{
75+
"type": "composer",
76+
"url": "https://asset-packagist.org"
77+
}
78+
]
7879
}

0 commit comments

Comments
 (0)