Testing kit: reject cached non-test database connections before refresh
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PHP
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 1 h 40 min
- PR fusionados (30 d)
- 143
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de temecms/teme
-
area/admin type/enhancement when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
area/media type/enhancement when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
area/admin type/bug when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
area/import type/documentation when/soon
Dificultad 2/5 Medio día Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area/admin area/import type/bug when/later
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de temecms/teme
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Los mantenedores suelen responder en 2 días
-
P2 Team S Type: Infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
google/site-kit-wp#14271 ·
Los mantenedores suelen responder en 2 días
-
Display price Views field throws TypeError when the row has no productPosiblemente ocupada @albanycomputers la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
backdrop-contrib/ubercart#610 ·