27-05-2026 DHL Modul v2.1 / Optimierung tracking
This commit is contained in:
parent
036595be94
commit
2bdc9ada3c
33 changed files with 2367 additions and 2086 deletions
15
tests/Unit/Dhl/DhlRouteRegistrationTest.php
Normal file
15
tests/Unit/Dhl/DhlRouteRegistrationTest.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
it('does not register the public tracking route inside the CRM admin group', function () {
|
||||
$crmRoutes = file_get_contents(base_path('routes/domains/crm.php'));
|
||||
|
||||
expect($crmRoutes)
|
||||
->not->toMatch('/Route::(get|post|match|any)\([^)]*\)->name\([\'"]public\.tracking[\'"]\)/');
|
||||
});
|
||||
|
||||
it('still exposes the public tracking route on the main domain', function () {
|
||||
$mainRoutes = file_get_contents(base_path('routes/domains/main.php'));
|
||||
|
||||
expect($mainRoutes)
|
||||
->toMatch('/Route::get\([\'"]\/tracking[\'"][^)]*\)->name\([\'"]public\.tracking[\'"]\)/');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue