GatheringWaiversControllerTest
extends HttpIntegrationTestCase
in package
Waivers\Controller\GatheringWaiversController Test Case
Tags
Table of Contents
Properties
- $_testFilePath : string|null
- Temp file path for cleanup
Methods
- testCalendarDataUsesGatheringTimezoneForEventDates() : void
- Test calendarData emits dates in the gathering's timezone.
- testDashboard() : void
- Test dashboard loads successfully
- testDashboardIncludesAllGatheringsSharingRequiredActivity() : void
- Test dashboard includes all gatherings that share the same required activity.
- testDashboardIncludesThirtyDayBoundaryGathering() : void
- Test dashboard includes gatherings that start exactly 30 days out.
- testDashboardRequiresAuthentication() : void
- Test dashboard requires authentication
- testDashboardSetsViewVariables() : void
- Test dashboard sets expected view variables
- testDelete() : void
- Test delete method for expired waivers
- testDeletePreventsActiveWaiverDeletion() : void
- Test delete prevents deletion of active waivers
- testDeleteRequiresAuthorization() : void
- Test authorization - only authorized users can delete
- testDownload() : void
- Test download method serves PDF file
- testDownloadRequiresAuthorization() : void
- Test authorization - only authorized users can download
- testDownloadRequiresValidId() : void
- Test download requires valid waiver ID
- testIndex() : void
- Test index method
- testIndexRequiresGatheringId() : void
- Test index requires gathering_id parameter
- testIndexShowsWaiverCounts() : void
- Test index shows waiver counts per type
- testInlinePdf() : void
- Test inlinePdf method serves PDF file for embedded viewing
- testInlinePdfRequiresAuthorization() : void
- Test authorization - only authorized users can access inline PDF viewer
- testUploadFormIncludesCameraCapture() : void
- Test upload form includes mobile camera capture support
- testUploadFormShowsRequiredWaiverTypes() : void
- Test upload form shows required waiver types
- testUploadGet() : void
- Test upload method GET request shows form
- testUploadRequiresAuthorization() : void
- Test authorization - only authorized users can upload
- testUploadRequiresGatheringId() : void
- Test upload requires gathering_id parameter
- testView() : void
- Test view method
- testViewShowsRetentionPolicy() : void
- Test view shows retention policy information
- setUp() : void
- tearDown() : void
Properties
$_testFilePath
Temp file path for cleanup
private
string|null
$_testFilePath
= null
Methods
testCalendarDataUsesGatheringTimezoneForEventDates()
Test calendarData emits dates in the gathering's timezone.
public
testCalendarDataUsesGatheringTimezoneForEventDates() : void
Tags
testDashboard()
Test dashboard loads successfully
public
testDashboard() : void
Verifies the dashboard action and its internal queries work, including the _getGatheringsNeedingClosed query that joins GatheringActivityWaivers → GatheringActivities → Gatherings.
Tags
testDashboardIncludesAllGatheringsSharingRequiredActivity()
Test dashboard includes all gatherings that share the same required activity.
public
testDashboardIncludesAllGatheringsSharingRequiredActivity() : void
Tags
testDashboardIncludesThirtyDayBoundaryGathering()
Test dashboard includes gatherings that start exactly 30 days out.
public
testDashboardIncludesThirtyDayBoundaryGathering() : void
Tags
testDashboardRequiresAuthentication()
Test dashboard requires authentication
public
testDashboardRequiresAuthentication() : void
testDashboardSetsViewVariables()
Test dashboard sets expected view variables
public
testDashboardSetsViewVariables() : void
Tags
testDelete()
Test delete method for expired waivers
public
testDelete() : void
Tags
testDeletePreventsActiveWaiverDeletion()
Test delete prevents deletion of active waivers
public
testDeletePreventsActiveWaiverDeletion() : void
testDeleteRequiresAuthorization()
Test authorization - only authorized users can delete
public
testDeleteRequiresAuthorization() : void
testDownload()
Test download method serves PDF file
public
testDownload() : void
Tags
testDownloadRequiresAuthorization()
Test authorization - only authorized users can download
public
testDownloadRequiresAuthorization() : void
testDownloadRequiresValidId()
Test download requires valid waiver ID
public
testDownloadRequiresValidId() : void
testIndex()
Test index method
public
testIndex() : void
Tags
testIndexRequiresGatheringId()
Test index requires gathering_id parameter
public
testIndexRequiresGatheringId() : void
testIndexShowsWaiverCounts()
Test index shows waiver counts per type
public
testIndexShowsWaiverCounts() : void
testInlinePdf()
Test inlinePdf method serves PDF file for embedded viewing
public
testInlinePdf() : void
Tags
testInlinePdfRequiresAuthorization()
Test authorization - only authorized users can access inline PDF viewer
public
testInlinePdfRequiresAuthorization() : void
testUploadFormIncludesCameraCapture()
Test upload form includes mobile camera capture support
public
testUploadFormIncludesCameraCapture() : void
testUploadFormShowsRequiredWaiverTypes()
Test upload form shows required waiver types
public
testUploadFormShowsRequiredWaiverTypes() : void
testUploadGet()
Test upload method GET request shows form
public
testUploadGet() : void
Tags
testUploadRequiresAuthorization()
Test authorization - only authorized users can upload
public
testUploadRequiresAuthorization() : void
testUploadRequiresGatheringId()
Test upload requires gathering_id parameter
public
testUploadRequiresGatheringId() : void
testView()
Test view method
public
testView() : void
Tags
testViewShowsRetentionPolicy()
Test view shows retention policy information
public
testViewShowsRetentionPolicy() : void
setUp()
protected
setUp() : void
tearDown()
protected
tearDown() : void