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

Đang mở
#683 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PHP
Star
1
Fork
1
Merge trung bình
1 giờ 40 phút
Pull request đã merge (30 ngày)
143

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của temecms/teme

Tất cả issue của temecms/teme

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.