- Added tests to ensure Redis namespace safety for `db_object_t` and `users_o`. - Implemented `MotorApiCachedResultTest` to validate metadata caching behavior. - Introduced configuration classes for `xlvask_automatic_order_attachment_enabled` and `xlvask_automatic_order_creation_enabled`. - Developed `xlvask_automation_service` with supporting features for usage log evaluation, suggestion building, and order automation.
17 lines
610 B
PHP
17 lines
610 B
PHP
<?php
|
|
|
|
it('exposes direct linked order metadata on XL Vask usage order rows', function (): void {
|
|
$route = file_get_contents(WD . '/routes/xlvaskUsageLogsRoute.php');
|
|
|
|
expect($route)->not->toBeFalse();
|
|
|
|
$route = (string)$route;
|
|
|
|
expect($route)
|
|
->toContain('$linked_order_ids_by_wash_id = []')
|
|
->and($route)->toContain('array_key_exists($wash_id, $linked_order_ids_by_wash_id)')
|
|
->and($route)->toContain('selectByWashId($wash_id)')
|
|
->and($route)->toContain("'linked_order_id' => \$linked_order_id")
|
|
->and($route)->toContain("'usage_log_id' => \$id");
|
|
});
|