Reduce AccountController to 20 methods, remove unused AdminOrdersController constant
- Move export, exportPdf, payoutPdf from AccountController to AccountEventOperationsController (9 -> 12 methods) - Remove getAllowedBilletTypes delegate from AccountController - Update tests to reference AccountEventCatalogController for that method - Remove unused DQL_EXCLUDE_INVITATIONS from AdminOrdersController Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2049,25 +2049,25 @@ class AccountControllerTest extends WebTestCase
|
||||
|
||||
public function testGetAllowedBilletTypesBasic(): void
|
||||
{
|
||||
$types = \App\Controller\AccountController::getAllowedBilletTypes('basic');
|
||||
$types = \App\Controller\AccountEventCatalogController::getAllowedBilletTypes('basic');
|
||||
self::assertSame(['billet', 'reservation_brocante', 'vote'], $types);
|
||||
}
|
||||
|
||||
public function testGetAllowedBilletTypesSurMesure(): void
|
||||
{
|
||||
$types = \App\Controller\AccountController::getAllowedBilletTypes('sur-mesure');
|
||||
$types = \App\Controller\AccountEventCatalogController::getAllowedBilletTypes('sur-mesure');
|
||||
self::assertSame(['billet', 'reservation_brocante', 'vote'], $types);
|
||||
}
|
||||
|
||||
public function testGetAllowedBilletTypesFree(): void
|
||||
{
|
||||
$types = \App\Controller\AccountController::getAllowedBilletTypes('free');
|
||||
$types = \App\Controller\AccountEventCatalogController::getAllowedBilletTypes('free');
|
||||
self::assertSame(['billet'], $types);
|
||||
}
|
||||
|
||||
public function testGetAllowedBilletTypesNull(): void
|
||||
{
|
||||
$types = \App\Controller\AccountController::getAllowedBilletTypes(null);
|
||||
$types = \App\Controller\AccountEventCatalogController::getAllowedBilletTypes(null);
|
||||
self::assertSame(['billet'], $types);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user