Testing kit: drive a plugin's own area, editor panel and status check

Aperta
#683 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
testing

Direzione di ricerca

Start in packages/teme-testing, where PluginUnderTest lives, and look at how the kit already exposes jobs and public routes. Core's PluginArea, EditorPanel and ChecksStatus contracts, and the AreaContext and EditorPanelContext they receive, define what the new methods must call and validate. Done means area(), panel() and statusNotices() run through core's manifest validation, permission checks and time budgets, and a refusal fails the test with its message.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/tests type/enhancement when/later

Core calls a plugin's own admin area (PluginArea: figures, chart, rows, values, save, act), its editor panels (EditorPanel::view() and settled()) and its status checks (ChecksStatus) with contexts it builds (AreaContext, EditorPanelContext), under time budgets and after validating what the manifest declared.

The testing kit offers no way to call any of these as a person. A test can reach only what jobs and public routes share with them, so the plugin's screens, its form checks and its permission rules are untested through the kit, and a test that builds the contexts by hand skips what core checks.

Expected: methods on PluginUnderTest, taking the person to act as, last, like the rest of the kit. For example area()->rows('record', filters, as: $person), area()->save('record', $id, $values, as: $person), panel('id')->view($item, as: $person), and statusNotices(), running through the same validation, permission checks and budgets core applies, and failing the test with the refusal's words.

Where: packages/teme-testing.

🤖 Generated with Claude Code

Lingua principale
PHP
Stelle
1
Fork
1
Merge medio
1h 40m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temecms/teme

Tutte le issue di temecms/teme

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.