================================================================= PHASE 0 — ENVIRONMENT / TEST DATABASE PROOF APP_ENV = local DB_CONNECTION = mysql DB_DATABASE = meemmarket_catch_catch DB_DRIVER = mysql CACHE_DRIVER = redis QUEUE_CONNECTION = database SESSION_DRIVER = redis RESULT TC-ENV-001 FAIL -> real test DB path=meemmarket_catch_catch Rate limiters registered (real values): api = NOT REGISTERED public-api = 120/min key=127.0.0.1 admin = NOT REGISTERED ================================================================= PHASE 1 — BASELINE DATABASE SNAPSHOT content_pages = 4 sections = 26 section_types = 10 section_type_settings = 19 products = 4115 categories = 187 brands = 399 banners = 20 sliders = 20 promotions = 10 tags = 1 flash_sales = 4 coupons = 10 cache[content_pages] initial = ["(array store: getKeys unsupported)"] ================================================================= PHASE 2 — SETUP admin user id=17 token=***3bdc section-type seed via API: {"banners":405,"sliders":405,"promotions":405,"tags":405,"categories":405,"products":405,"flash-sales":405,"brands":405,"coupons":405} section_types row id=1 type=sliders section_types row id=2 type=banners section_types row id=3 type=promotions section_types row id=4 type=tags section_types row id=5 type=categories section_types row id=6 type=flash-sales section_types row id=7 type=products section_types row id=8 type=brands section_types row id=9 type=coupons section_types row id=10 type=hero custom type create via API: HTTP=405 custom type DB row: null RESULT TC-ST-CUSTOM-CREATE FAIL -> HTTP=405 type=new-arrivals ================================================================= PHASE 3 — CONTENT PAGE CREATE MATRIX BEFORE content_pages=4 TC-CP-001 HTTP=201 returned id=6 TC-CP-001 DB row: {"id":6,"title":"{\"en\":\"Home Electronics\",\"ar\":\"\u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629 \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a\u0627\u062a\"}","slug":"home-electronics","is_active":1,"created_at":"2026-11-30 21:37:44","updated_at":"2026-11-30 21:37:44"} RESULT TC-CP-001 PASS -> active page, slug=home-electronics, JSON title stored RESULT TC-CP-002 PASS -> HTTP=201 id=7 RESULT TC-CP-003 PASS -> HTTP=201 id=8 RESULT TC-CP-004 PASS -> HTTP=422 before=7 after=7 RESULT TC-CP-005 PASS -> HTTP=422 before=7 after=7 RESULT TC-CP-006 PASS -> HTTP=422 before=7 after=7 RESULT TC-CP-007 PASS -> HTTP=422 before=7 after=7 (unique-translation guard) RESULT TC-CP-008 PASS -> HTTP=403 before=7 after=7 RESULT TC-CP-009 PASS -> HTTP=401 before=7 after=7 AFTER content_pages=7 (expected +3) ================================================================= PHASE 4 — CONTENT PAGE UPDATE BEFORE row: {"id":7,"title":"{\"en\":\"Mobile Phones\",\"ar\":\"\u0627\u0644\u0647\u0648\u0627\u062a\u0641 \u0627\u0644\u0645\u062d\u0645\u0648\u0644\u0629\"}","slug":"mobile-phones","is_active":1,"created_at":"2026-11-30 21:37:44","updated_at":"2026-11-30 21:37:44"} HTTP=200 response data.title="Smartphones & Tablets" AFTER row: {"id":7,"title":"{\"en\":\"Smartphones & Tablets\",\"ar\":\"\u0627\u0644\u0647\u0648\u0627\u062a\u0641 \u0627\u0644\u0630\u0643\u064a\u0629\"}","slug":"mobile-phones","is_active":0,"created_at":"2026-11-30 21:37:44","updated_at":"2026-11-30 21:37:44"} RESULT TC-CP-U-001 PASS -> title+is_active changed, slug/created_at unchanged, updated_at persisted RESULT TC-CP-U-002 PASS -> API response title matches DB (en) ================================================================= PHASE 5 — CONTENT PAGE DELETE created sections ids=[28,29] attach HTTP=200 -> DB content_page_id=[9,9] DELETE HTTP=200 sections after delete: [{"id":28,"type":"banners","title":"{\"en\":\"Hero Banners\",\"ar\":\"\u0628\u0627\u0646\u0631\u0627\u062a \u0631\u0626\u064a\u0633\u064a\u0629\"}","order":27,"endpoint":"general\/banners","content_page_id":null,"is_active":1,"title_visible":1,"setting":null,"created_at":"2026-11-30 21:37:44","updated_at":"2026-11-30 21:37:44"},{"id":29,"type":"banners","title":"{\"en\":\"Active Promotions\",\"ar\":\"\u0639\u0631\u0648\u0636 \u0646\u0634\u0637\u0629\"}","order":28,"endpoint":"general\/banners","content_page_id":null,"is_active":1,"title_visible":1,"setting":null,"created_at":"2026-11-30 21:37:44","updated_at":"2026-11-30 21:37:44"}] RESULT TC-CP-D-001 PASS -> hard delete confirmed RESULT TC-CP-D-002 PASS -> sections survive as orphans (content_page_id=NULL) — FK nullOnDelete ================================================================= PHASE 6 — PUBLIC ACTIVE / INACTIVE inactive page id=10 toggle HTTP=200 DB is_active=0 RESULT TC-PB-DB-001 PASS -> active page exists is_active=1 RESULT TC-PB-DB-002 PASS -> inactive page exists is_active=0 public index slugs: ["home","electronics","audio","home-electronics","featured-products"] RESULT TC-PB-001 PASS -> active appears, inactive hidden RESULT TC-PB-002 PASS -> active show HTTP=200 RESULT TC-PB-003 PASS -> inactive show hidden HTTP=404 ================================================================= PHASE 7 — SECTION TYPE CRUD {"message":"Internal Server Error","status":false,"success":false}