Test sidebars API based on capabilities, not roles #24902
Labels
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
[Type] Enhancement
A suggestion for improvement.
At the moment, the unit tests for the sidebars endpoint are checking for "admin", "editor", "author", "subscriber" roles:
gutenberg/phpunit/class-rest-sidebars-controller-test.php
Lines 163 to 168 in cefab03
It would be way better to test based on the capabilities (
edit_theme_options
maybe?).The text was updated successfully, but these errors were encountered: