Skip to content

Commit b093525

Browse files
test(fields): add PHPUnit test suite for plugin
• New phpunit.xml and bootstrap for the Fields plugin • PluginFieldsContainerTest covers: - Creating / reading containers - Filtering containers by entity, subtype, recursion - Hooks: preItem, postItemAdd, preItemUpdate - populateData (single + multi-dropdown) - showForTab rendering and rights checks
1 parent 3555e97 commit b093525

File tree

6 files changed

+2236
-211
lines changed

6 files changed

+2236
-211
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ dist/
22
vendor/
33
.gh_token
44
*.min.*
5+
*.cache

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"php-parallel-lint/php-parallel-lint": "^1.4",
1111
"phpstan/extension-installer": "^1.4",
1212
"phpstan/phpstan": "^2.1",
13-
"phpstan/phpstan-deprecation-rules": "^2.0"
13+
"phpstan/phpstan-deprecation-rules": "^2.0",
14+
"phpunit/phpunit": "^9.6"
1415
},
1516
"config": {
1617
"optimize-autoloader": true,

0 commit comments

Comments
 (0)