Differences Between: [Versions 400 and 402]
(no description)
File Size: | 370 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
permission_test:: (14 methods):
test_require_can_view_reports_list()
test_require_can_view_reports_list_disabled()
test_require_can_view_report()
test_require_can_view_report_with_audience()
test_require_can_view_report_disabled()
test_require_can_edit_report_system_report()
test_require_can_edit_report_none()
test_require_can_edit_report_own()
test_require_can_edit_report_all()
test_require_can_edit_report_disabled()
test_require_can_create_report()
test_require_can_create_report_disabled()
can_create_report_limit_reached_provider()
test_can_create_report_limit_reached()
Class: permission_test - X-Ref
Unit tests for the report permission classtest_require_can_view_reports_list() X-Ref |
Test whether user can view reports list |
test_require_can_view_reports_list_disabled() X-Ref |
Test whether user can view reports list when custom reports are disabled |
test_require_can_view_report() X-Ref |
Test whether user can view specific report |
test_require_can_view_report_with_audience() X-Ref |
Test whether user can view specific report when it belongs to an audience |
test_require_can_view_report_disabled() X-Ref |
Test whether user can view report when custom reports are disabled |
test_require_can_edit_report_system_report() X-Ref |
Test that user cannot edit system reports |
test_require_can_edit_report_none() X-Ref |
Test that user cannot edit any reports without capabilities |
test_require_can_edit_report_own() X-Ref |
Test that user can edit their own reports |
test_require_can_edit_report_all() X-Ref |
Test that user can edit any reports |
test_require_can_edit_report_disabled() X-Ref |
Test whether user can edit report when custom reports are disabled |
test_require_can_create_report() X-Ref |
Test that user can create a new report |
test_require_can_create_report_disabled() X-Ref |
Test whether user can create report when custom reports are disabled |
can_create_report_limit_reached_provider() X-Ref |
Data provider for {@see test_can_create_report_limit_reached} return: array |
test_can_create_report_limit_reached(int $customreportslimit, int $existingreports, bool $expected) X-Ref |
Test whether user can create report when limit report are reache param: int $customreportslimit param: int $existingreports param: bool $expected |