Symfony Integration issue with TestConnectionFactory
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with tests/Repository/PostRepositoryTestWithTestConnectionFactory.php and tests/TestConnectionFactory.php, then inspect config/packages/test/services.yml to trace how the factory is registered for the test environment. Reproduce the failing test and verify that the configured factory is applied instead of attempting the default 127.0.0.1:5432 connection.
Written by the indexing model from the issue text.
Description
I have updated packages to testcontainrs/testcontainers.
I followed the guide in the readme, created a TestConnectionFactory, and declared in the config/packages/test/services.yml.
But when running the tests, it can not find the host 127.0.0.1 and port 5432.
Check the test file: https://github.com/hantsy/symfony-rest-sample/blob/69e8c0d5f91ee999eb2b949bde6a6bf4a21876de/tests/Repository/PostRepositoryTestWithTestConnectionFactory.php
And services.yml file: https://github.com/hantsy/symfony-rest-sample/blob/69e8c0d5f91ee999eb2b949bde6a6bf4a21876de/config/packages/test/services.yml
And the TestConnnectionFactory file :https://github.com/hantsy/symfony-rest-sample/blob/69e8c0d5f91ee999eb2b949bde6a6bf4a21876de/tests/TestConnectionFactory.php
It seems the TestConnectonFactory is not applied at all.
- Dominant language
- PHP
- Stars
- 215
- Forks
- 34
- Avg merge
- 1h 59m
- Merged PRs (30d)
- 3
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from testcontainers/testcontainers-php
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
testcontainers/testcontainers-php#57 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in testcontainers/testcontainers-php
Similar issues
-
Update the one-click "GTM4WP" Delay JS exclusion so that it also works with a custom data layer nameOpen
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
[Feature]: Remove Kanboard Discourse forum link from README.md and CONTRIBUTING.md, or moderate itOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug Localization
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
solana-foundation/pay-kit#341 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cline/cline#14560 · 1 comment ·
Maintainers usually reply within 1 day