Skip to content

Commit 9ee3b7a

Browse files
committed
Added some tests
1 parent e826f03 commit 9ee3b7a

13 files changed

Lines changed: 974 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor
22
composer.lock
3+
*.cache

Taskfile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ tasks:
2929
cmds:
3030
- task --list
3131
silent: true
32+
33+
xdebug:test:
34+
cmds:
35+
- PHP_XDEBUG_MODE=debug PHP_XDEBUG_WITH_REQUEST=yes PHP_IDE_CONFIG=serverName=localhost docker compose run --env PHP_XDEBUG_MODE --env PHP_XDEBUG_WITH_REQUEST --env PHP_IDE_CONFIG --rm phpfpm vendor/bin/phpunit {{.CLI_ARGS}}

compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ services:
55
image: itkdev/php8.4-fpm:latest
66
user: ${COMPOSE_USER:-deploy}
77
volumes:
8-
- .:/app
8+
- .:/app-os2forms_fordelingskomponent
9+
working_dir: /app-os2forms_fordelingskomponent
910

1011
# Code checks tools
1112
markdownlint:

composer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
}
1111
],
1212
"require": {
13+
"ext-dom": "*",
1314
"drupal/webform": "^6.1",
1415
"drush/drush": "^12 || ^13",
1516
"itk-dev/serviceplatformen": "dev-feature/SF2900-Fordelingskomponenten",
@@ -20,7 +21,8 @@
2021
"drupal/coder": "^8.3",
2122
"ergebnis/composer-normalize": "^2.49",
2223
"mglaman/phpstan-drupal": "^2.0",
23-
"phpstan/extension-installer": "^1.4"
24+
"phpstan/extension-installer": "^1.4",
25+
"phpunit/phpunit": "^9.6"
2426
},
2527
"repositories": [
2628
{
@@ -30,6 +32,12 @@
3032
],
3133
"minimum-stability": "dev",
3234
"prefer-stable": true,
35+
"autoload-dev": {
36+
"psr-4": {
37+
"Drupal\\os2forms_fordelingskomponent\\": "src/",
38+
"Drupal\\os2forms_fordelingskomponent\\Test\\": "tests/"
39+
}
40+
},
3341
"config": {
3442
"allow-plugins": {
3543
"cweagans/composer-patches": true,

0 commit comments

Comments
 (0)