trypost/tests/Feature
Paulo Castellano c020419db1 feat: social account toggle action, API, MCP + full test coverage
- Extract ToggleSocialAccount action from SocialController
- Add API endpoints: GET /social-accounts, PUT /social-accounts/{id}/toggle
- Add MCP tools: ListSocialAccountsTool, ToggleSocialAccountTool
- Fix all MCP tools: findOrFail → find + Response::error for graceful errors
- Fix MCP tools using $request->validated() without validate() call
- Fix return types to Response|ResponseFactory for error paths
- Add SocialAccountResource is_active/status fields (no tokens exposed)
- Add 43 MCP tests covering all 18 tools (CRUD, validation, cross-workspace)
- Add API response structure tests for posts, hashtags, labels, workspace
- Add API validation tests for post create/update, api-key expiry, label color
- Add API cross-workspace delete tests for hashtags and labels
- Add app validation tests for hashtag/label update, invite fields, password
- Add auth required tests for notifications, profile delete, api-keys index
- Add media reorder validation tests
2026-03-31 01:42:39 -03:00
..
Api feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
Auth chore: tracking, gtm and more 2026-03-30 21:32:43 -03:00
Commands refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
Controllers refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
Jobs refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
Listeners refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
Mcp feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
Middleware refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
Services/Social refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
Settings feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
Social refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
AcceptInviteControllerTest.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
ApiKeyControllerTest.php feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
BillingControllerTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
CreateUserActionTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
ExampleTest.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
MediaControllerTest.php feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
NotificationControllerTest.php feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
OnboardingControllerTest.php fix: security audit - IDOR, open redirect, authorization, session fixes 2026-03-30 14:58:25 -03:00
PostControllerTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
PostSearchTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
SendPostHogEventTest.php chore: posthog, ui, features and more 2026-03-30 21:18:07 -03:00
SignupSuccessControllerTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
SocialAccountToggleTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
SocialControllerTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
SocialLoginControllerTest.php chore: tracking, gtm and more 2026-03-30 21:32:43 -03:00
VerifyWorkspaceConnectionsTest.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
WorkspaceControllerTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
WorkspaceHashtagControllerTest.php feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
WorkspaceInviteControllerTest.php feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
WorkspaceLabelControllerTest.php feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00