Skip to content

Commit 92c2d00

Browse files
authored
Merge pull request #75 from itk-dev/feature/test-coverage
Phase 1: Test infrastructure (unit/functional split, DAMA + Liip + messenger-test)
2 parents 2141c29 + 37c1290 commit 92c2d00

20 files changed

Lines changed: 940 additions & 533 deletions

.env.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# define your env variables for the test env here
22
KERNEL_CLASS='App\Kernel'
33
APP_SECRET='$ecretf0rt3st'
4-
SYMFONY_DEPRECATIONS_HELPER=999999
4+
MAILER_DSN=null://null
5+
INDEXING_URL=http://elasticsearch:9200

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020

2121
node_modules/
2222

23-
###> symfony/phpunit-bridge ###
24-
.phpunit.result.cache
25-
/phpunit.xml
26-
.phpunit.cache
27-
###< symfony/phpunit-bridge ###
28-
2923
###> phpunit/phpunit ###
3024
/phpunit.xml
3125
/.phpunit.cache/

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ See [keep a changelog] for information about writing changes to this log.
88

99
## [Unreleased]
1010

11+
- [PR-75](https://github.com/itk-dev/event-database-imports/pull/75) Added test infrastructure (PHPUnit 12, DAMA, Liip)
12+
1113
## [1.2.3] - 2026-03-29
1214

1315
- [PR-68](https://github.com/itk-dev/event-database-imports/pull/68) Made event organizer required for organization users

bin/phpunit

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,4 @@ if (!ini_get('date.timezone')) {
55
ini_set('date.timezone', 'UTC');
66
}
77

8-
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9-
if (PHP_VERSION_ID >= 80000) {
10-
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
11-
} else {
12-
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
13-
require PHPUNIT_COMPOSER_INSTALL;
14-
PHPUnit\TextUI\Command::main();
15-
}
16-
} else {
17-
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
18-
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
19-
exit(1);
20-
}
21-
22-
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
23-
}
8+
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';

composer.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,25 @@
5656
"symfonycasts/verify-email-bundle": "^1.16"
5757
},
5858
"require-dev": {
59+
"dama/doctrine-test-bundle": "^8",
5960
"doctrine/doctrine-fixtures-bundle": "^3.4",
6061
"ergebnis/composer-normalize": "^2.47",
62+
"ergebnis/phpunit-slow-test-detector": "^2.19",
6163
"friendsofphp/php-cs-fixer": "^3.85",
64+
"liip/test-fixtures-bundle": "^3",
6265
"phpstan/extension-installer": "^1.4",
6366
"phpstan/phpstan": "^2.1",
6467
"phpstan/phpstan-doctrine": "^2.0",
6568
"phpstan/phpstan-phpunit": "^2.0",
6669
"phpstan/phpstan-symfony": "^2.0",
67-
"phpunit/phpunit": "^10.3",
70+
"phpunit/phpunit": "^12",
6871
"symfony/browser-kit": "~7.3.0",
6972
"symfony/css-selector": "~7.3.0",
7073
"symfony/maker-bundle": "^1.49",
71-
"symfony/phpunit-bridge": "^6.3",
7274
"symfony/stopwatch": "^7.3",
7375
"symfony/web-profiler-bundle": "^7.3",
74-
"vincentlanglet/twig-cs-fixer": "^3.9"
76+
"vincentlanglet/twig-cs-fixer": "^3.9",
77+
"zenstruck/messenger-test": "^1.11"
7578
},
7679
"replace": {
7780
"symfony/polyfill-ctype": "*",

0 commit comments

Comments
 (0)