Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Symfony Integration issue with TestConnectionFactory

オープン
#22 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, symfony
領域
backend, testing

調査の方向性

tests/Repository/PostRepositoryTestWithTestConnectionFactory.php と tests/TestConnectionFactory.php から始め、次に config/packages/test/services.yml を調べて、テスト環境用に factory がどのように登録されているかを追跡します。失敗するテストを再現し、デフォルトの 127.0.0.1:5432 接続を試みるのではなく、設定された factory が適用されていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
PHP
スター
214
フォーク
34
平均マージ
1時間 19分
マージ済み PR(30日)
2

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

testcontainers/testcontainers-php のほかの issue

testcontainers/testcontainers-php の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。