Test: Lifecycle events (BeforePost, AfterPost, PostFailed) #70

Open
opened 2026-05-29 04:12:39 +00:00 by jmiller · 1 comment
Owner

Test: Cross-Post Lifecycle Events

What changed

Three Joomla events fired during cross-posting:

  • onMokoJoomCrossBeforePost (cancellable)
  • onMokoJoomCrossAfterPost
  • onMokoJoomCrossPostFailed

Steps to test

  1. Create a test system plugin subscribing to onMokoJoomCrossAfterPost
  2. Publish an article → verify the event fires with correct parameters
  3. Subscribe to onMokoJoomCrossBeforePost, set $cancel = true
  4. Publish → verify the post is cancelled (status 'cancelled')
  5. Test onMokoJoomCrossPostFailed with invalid credentials

Labels

type: testing, priority: low

## Test: Cross-Post Lifecycle Events ### What changed Three Joomla events fired during cross-posting: - `onMokoJoomCrossBeforePost` (cancellable) - `onMokoJoomCrossAfterPost` - `onMokoJoomCrossPostFailed` ### Steps to test 1. Create a test system plugin subscribing to `onMokoJoomCrossAfterPost` 2. Publish an article → verify the event fires with correct parameters 3. Subscribe to `onMokoJoomCrossBeforePost`, set `$cancel = true` 4. Publish → verify the post is cancelled (status 'cancelled') 5. Test `onMokoJoomCrossPostFailed` with invalid credentials ### Labels `type: testing`, `priority: low`
Author
Owner

Branch created: feature/70-test-lifecycle-events-beforepost-afterpo

git fetch origin
git checkout feature/70-test-lifecycle-events-beforepost-afterpo
Branch created: [`feature/70-test-lifecycle-events-beforepost-afterpo`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomCross/src/branch/feature/70-test-lifecycle-events-beforepost-afterpo) ```bash git fetch origin git checkout feature/70-test-lifecycle-events-beforepost-afterpo ```
Sign in to join this conversation.
Type Task
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomCross#70