You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor test container configurations to eliminate duplication
Add centralized container factory methods in TestCase.php to eliminate
duplicate PodSpec configurations across test files. This refactoring
addresses 29+ instances of duplicate MySQL, Perl, Busybox, and Nginx
container setups.
Key changes:
- Add createMysqlContainer(), createPerlContainer(), createBusyboxContainer(),
and createNginxContainer() helper methods in TestCase.php
- Add createMysqlPod() and createPerlPod() helper methods for complete pod setup
- Refactor 11 test files to use standardized container helpers
- Maintain backward compatibility through flexible options arrays
- Reduce test setup code from ~300 lines to centralized configuration
Benefits:
- DRY principle: single source of truth for container configurations
- Improved maintainability: changes only needed in TestCase.php
- Consistent container setup across all tests
- Enhanced readability with self-documenting helper method names
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments