Skip to content

Commit a3be97c

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 233e95e commit a3be97c

File tree

6 files changed

+2886
-431
lines changed

6 files changed

+2886
-431
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
@@ -9,7 +9,8 @@
99
"php-parallel-lint/php-parallel-lint": "^1.4",
1010
"phpstan/extension-installer": "^1.4",
1111
"phpstan/phpstan": "^2.1",
12-
"phpstan/phpstan-deprecation-rules": "^2.0"
12+
"phpstan/phpstan-deprecation-rules": "^2.0",
13+
"phpunit/phpunit": "^9.6"
1314
},
1415
"config": {
1516
"optimize-autoloader": true,

0 commit comments

Comments
 (0)