Files
api/services/nginx/app/tests/Unit/Users/UsersRedisNamespaceSafetyTest.php
T
Jeppe Bundgaard 70080086da Add unit tests for Redis namespace safety, MotorAPI cache functionality, and configuration classes, alongside implementation of xlvask_automation_service
- 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.
2026-05-12 00:22:27 +02:00

10 lines
255 B
PHP

<?php
it('keeps users Redis access namespace safe', function (): void {
$content = file_get_contents(WD . '/objects/users_o.php');
expect($content)
->not->toContain('redis->')
->and($content)->toContain("constant('redis')");
});