Closed (fixed)
Project:
Mastodon API
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2026 at 19:03 UTC
Updated:
13 Jun 2026 at 16:00 UTC
Jump to comment: Most recent
Although this module is in a (relatively) stable state now, it has very few tests.
We should write some more, particularly around some of the form interactions and permission checking.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
philipnorton42 commentedAdd tests for access to the different forms based on user permissions.
- Add `administer mastodon api` and check access to the admin area.
- Add `administer mastodon_api_instance` and check access to the instance form.
Maybe write better documentation for the permissions.
Comment #3
stevenpatzAdd `administer mastodon api` and check access to the admin area.
Was looking at this issue today, isn't there already a test for this?
Comment #4
philipnorton42 commentedHi stevenpatz,
Yes. You are right. We do have a test for that, in the MastodonApiPushStatusFormTest class.
I've been adding tests to the module when writing other bits of functionality. As a result, I think we are ok in terms of test coverage at the moment.
I've also been adding lots to the documentation over the last few months. I think the documentation is ok now.
What I'll do is close this issue. If you do have some code that you want to submit then please re-open the issue and add your code.