]>
gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commit
fix(ERP-252): add delivery parsing tests and fix surprise-delivery pattern
12 unit tests for parseAddressFromDeliveryText() covering:
- Full address (city/street/house)
- "Уточните адрес у получателя" pattern
- Surprise SMS delivery ("Отправим смс получателю...")
- Empty strings, prefix-only, unknown cities
- GPS coordinates for known cities
- Pickup delivery, two-word cities
- Result structure validation (all keys, no nulls)
Fixed parser: added filters for surprise-delivery phrases
that were incorrectly parsed as street names.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>