Repository navigation
docs: Correct PHP unit test setup - #2654
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Developer Docs healthcheckStatus: Completed with |
Developer Docs healthcheckStatus: Running. |
1 similar comment
Developer Docs healthcheckStatus: Running. |
Contributor
📢 Developer Announcement RecommendationRecommendation: ❌ No Announcement Recommended No developer announcement signals were detected.
|
Bojan Rajh (bojanrajh)
approved these changes
Oct 22, 2026
Umut Dogan (umutdogan4291)
approved these changes
Oct 23, 2026
Su (sushmangupta)
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plugin:creategenerates the shown configuration, while the scaffold defines one testsuite pointing totests(php-unit.mdL22;phpunit-xml.stubL18-L21).BasicExample; the scaffold supplies the configured class name, andaddCallingPlugin()activates the final class name fromextra.shopware-plugin-class(test-bootstrap.stubL5-L9;TestBootstrapper.phpL235-L238). The example now usesSwagBasicExample.src; the scaffold writes the regular service config tosrc/Resources/config/services.php, andBundle.phplooks for test config under$this->getPath()/Resources/config(CommandGenerator.phpL40-L44;Bundle.phpL244-L248). The page now includessrcin both paths.Related links
php-unit.mdL22php-unit.mdL43-L49php-unit.mdL63-L65php-unit.mdL178v6.7.15.1):phpunit-xml.stubL18-L21: The generated configuration contains one testsuite that points totests.TestsGenerator.phpL48-L56: The scaffold fills the testsuite name with the configured plugin name.test-bootstrap.stubL5-L9: The scaffold fillsaddActivePlugins()with the configured plugin class name.TestBootstrapper.phpL235-L238:addCallingPlugin()activates the final class name fromextra.shopware-plugin-class.CommandGenerator.phpL40-L44: The scaffold writes the regular service configuration undersrc/Resources/config.Bundle.phpL244-L248: The bundle loads test service configuration fromResources/config/services_test.*under its path in the test environment.Checklist
PageRefreferences where relevant. (Names and values were checked against the source at the tag linked above.).gitbook.yamlif pages were moved, renamed, or deleted. (N/A, no page moved.).wordlist.txt(and sorted it) if spellcheck flags new legitimate terms. (No new prose words.)Notes
v6.7.15.1):src/Core/Framework/Bundle.phpL244-L248;src/Core/Framework/Plugin/Command/Scaffolding/Generator/CommandGenerator.phpL40-L44;src/Core/Framework/Plugin/Command/Scaffolding/Generator/TestsGenerator.phpL48-L56;src/Core/Framework/Plugin/Command/Scaffolding/stubs/phpunit-xml.stubL18-L21;src/Core/Framework/Plugin/Command/Scaffolding/stubs/test-bootstrap.stubL5-L9;src/Core/TestBootstrapper.phpL235-L238.shopware/shopwareat tagv6.7.15.1, then an independent re-check by a second AI model that re-read the page and the cited source files. Please check the cited lines yourself before merging.main(Shopware 6.7) only. Older docs branches are not touched.🤖 Generated with Claude Code