Files
api/services/nginx/app/tests/Unit/Orders/CustomerOrderProductPolicyTest.php
T

14 lines
485 B
PHP

<?php
declare(strict_types=1);
it('delegates every lower-level order product decision to the exact configured restriction service', function (): void {
$policy = file_get_contents(app_path('classes/customer_order_product_policy.php'));
expect($policy)
->toContain('violationForCustomerProduct($customerNumber, $productId)')
->not->toContain('product_category')
->not->toContain('tankcleaning')
->not->toContain('rowMatchesProductTerms');
});