Needs review
Project:
Taxonomy Access Control Lite
Version:
2.0.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 May 2023 at 21:11 UTC
Updated:
30 Apr 2026 at 16:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
liam morlandHere is a simple functional test to get started.
Comment #4
liam morlandThis merge request enables testing, creates a simple test to get started, and fixes all coding standards issues except #3395316: Use dependency injection. Doing this required also fixing #3359802: Add schema for tac_lite.settings.
Comment #5
damienmckennaYes yes!
Comment #6
damienmckennaAm going to expand upon this and merge in #3359802: Add schema for tac_lite.settings.
Comment #7
damienmckennaI'll continue working on this on Monday, I want to add test coverage to confirm the permission system actually locks down the content as expected.
Comment #8
liam morlandI was thinking this issue would just be about getting testing to run. There can be a follow-up about writing comprehensive tests. If something is running, at least there can be coding standards checks for all changes.
Comment #9
damienmckennaWhile we're waiting for the maintainers to follow up on issues there's no harm on improving what you'd built to both fix the schema and cover usage scenarios. Also, I needed to make sure there was test coverage for this functionality for a work project, so rather than building something custom for our site I'm extending your MR to make the test coverage useful for everyone.
Comment #10
damienmckennaComment #11
damienmckennaNow we have some test coverage for the basic module functionality, it can be refined some more if needed.
Comment #12
liam morlandI made a couple of minor changes. All tests and checks are passing except dependency injection, which is handled in #3395316: Use dependency injection.
Comment #13
damienmckennaThanks Liam.
Maintainers: it would be really helpful if you could commit this, it would open the door for us to add test coverage for other scenarios and issues. Thank you.
Comment #14
damienmckennaBTW I split out the setup() method into a separate base class so that I can reuse some of the logic in #3583524: Add support for Paragraphs entities.
Comment #15
damienmckennaWe'll also need to consider when to replace node_access_rebuild() with the new API: https://www.drupal.org/node/3534610