Testing kit: reject cached non-test database connections before refresh
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
Start with the base test class Teme\Testing\TemeTestCase and see where it reaches Laravel's RefreshDatabase setup, then check how a cached configuration (bootstrap/cache/config.php) overrides the PHPUnit database settings. Add a regression test where the cached connection differs from the PostgreSQL test target. Done when that test stops before any refresh and the error names the effective and expected database and explains how to clear the config cache. The issue leaves open whether to reject the cache or verify the connection, so confirm the approach in the thread first.
索引モデルが issue の本文から書いたものです。
説明
A theme test run inherited a Laravel configuration cache that pointed to the normal site database. Although PHPUnit specified the dedicated PostgreSQL test configuration, the values in the cached application configuration took precedence. Teme\Testing\TemeTestCase reached Laravel's RefreshDatabase setup and reset the local site's schema before a test assertion ran.
Expected: the kit rejects a cached configuration or verifies the effective database connection against the configured test target before invoking the database refresh. The error should name the effective database and expected test target and explain how to bypass the config cache for a test run. Add regression coverage for a cache whose database disagrees with PHPUnit.
For the theme verification, bypassing the config cache and explicitly using the dedicated PostgreSQL test database kept subsequent tests isolated.
- 主要言語
- PHP
- スター
- 1
- フォーク
- 1
- 平均マージ
- 1時間 40分
- マージ済み PR(30日)
- 143
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
temecms/teme のほかの issue
-
area/admin type/enhancement when/soon
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
area/media type/enhancement when/soon
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
area/admin type/bug when/soon
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
area/import type/documentation when/soon
難易度 2/5 半日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area/admin area/import type/bug when/later
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
メンテナーはふだん 2 日以内に返信
-
P2 Team S Type: Infrastructure
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
google/site-kit-wp#14271 ·
メンテナーはふだん 2 日以内に返信
-
Display price Views field throws TypeError when the row has no product対応中かも @albanycomputers が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
backdrop-contrib/ubercart#610 ·