silverstripe-contentreview/tests/php
Mo Alsharaf 1cf0f01a35
NEW Allow for optional can permission method for content review (#152)
* Allow for optional can permission method for content review

* Content Review permission logic

With the new `canReviewContent()` permission checker we only need to check the permission is set for the user and `canBeReviewedBy()` will always check if the page object is due for review by its owner.

Thus removed redundant logic in `canUseReviewContent()` and accordingly renamed the class filename for additional context.

Co-authored-by: Jared Dreyer <jared.dreyer@silverstripe.com>
2022-06-22 12:25:59 +12:00
..
Extensions NEW Allow for optional can permission method for content review (#152) 2022-06-22 12:25:59 +12:00
Forms NEW Allow for optional can permission method for content review (#152) 2022-06-22 12:25:59 +12:00
ContentReviewBaseTest.php API phpunit 9 support 2021-11-01 14:35:22 +13:00
ContentReviewCMSPageEditControllerTest.php API phpunit 9 support 2021-11-01 14:35:22 +13:00
ContentReviewNotificationTest.php API phpunit 9 support 2021-11-01 14:35:22 +13:00
ContentReviewReportTest.php ENH: Respect sort and limit arguments (#158) 2022-03-11 09:14:06 +13:00
ContentReviewSettingsTest.php API phpunit 9 support 2021-11-01 14:35:22 +13:00
ContentReviewSettingsTest.yml NEW Add behat tests to cover content review configuration and review modal 2017-09-15 16:06:38 +12:00
ContentReviewTest.yml NEW Add behat tests to cover content review configuration and review modal 2017-09-15 16:06:38 +12:00
SiteTreeContentReviewTest.php NEW Allow for optional can permission method for content review (#152) 2022-06-22 12:25:59 +12:00